October 12, 2011 02:11 pm GMT
Original Link: https://www.smashingmagazine.com/2011/10/developers-guide-conflict-free-javascript-css-wordpress/
The Developer's Guide To Conflict-Free JavaScript And CSS In WordPress
Imagine youre playing the latest hash-tag game on Twitter when you see this friendly tweet: You might want to check your #WP site. It includes two copies of jQuery. Nothings broken, but loading time will be slower.You check your source code, and sure enough you see this:<script src="/wp-includes/js/jquery/jquery.js?ver=1.6.1" type="text/javascript"></script> <script src="/wp-content/plugins/some-plugin/jquery.js"></script> What Went Wrong? The first copy of jQuery is included the WordPress way, while some-plugin includes jQuery as you would on a static HTML page.Original Link: https://www.smashingmagazine.com/2011/10/developers-guide-conflict-free-javascript-css-wordpress/
Share this article:
Tweet
View Full Article
Smashing Magazine
Smashing Magazine delivers useful and innovative information to Web designers and developers.More About this Source Visit Smashing Magazine