Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 12, 2011 02:11 pm GMT

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:    Share on Facebook
View Full Article

Smashing Magazine

Smashing Magazine delivers useful and innovative information to Web designers and developers.

More About this Source Visit Smashing Magazine