Jump to content
Sign in to follow this  
heroescourse

How to lessen number of javascript scripts

Recommended Posts

heroescourse

I just ran YSlow on my website and it says that I'm trying to pull 27 external javascripts. How can i combine them into one? Any other ideas on how to optimize the speed on my website? Thanks, Stephen ************ Grade Overall Grade: C (Ruleset applied: Small Site or Blog) F Make fewer HTTP requests This page has 27 external Javascript scripts. Try combining them into one. This page has 27 external stylesheets. Try combining them into one. This page has 23 external background images. Try combining them with CSS sprites. A Avoid empty src or href F Compress components with gzip There are 13 plain text components that should be sent compressed http://www.usvetsinc.org/.../jquery.form.js?...'>http://www.usvetsinc.org/.../jquery.form.js?... http://www.usvetsinc.org/.../mailchimp.js?...'>http://www.usvetsinc.org/.../mailchimp.js?... http://www.usvetsinc.org/wp-includes/js/comment-reply.js?...'>http://www.usvetsinc.org/wp-includes/js/comment-reply.js?... http://www.usvetsinc.org/.../jquery.nivo.slider.pack.js?...'>http://www.usvetsinc.org/.../jquery.nivo.slider.pack.js?... http://www.usvetsinc.org/.../jquery.colorbox-min.js?...'>http://www.usvetsinc.org/.../jquery.colorbox-min.js?... http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js http://www.usvetsinc.org/.../jquery.easing.1.3.js'>http://www.usvetsinc.org/.../jquery.easing.1.3.js http://www.usvetsinc.org/.../jquery.timers-1.2.js'>http://www.usvetsinc.org/.../jquery.timers-1.2.js http://www.usvetsinc.org/.../jquery.galleryview-3.0.min.js'>http://www.usvetsinc.org/.../jquery.galleryview-3.0.min.js http://www.usvetsinc.org/.../wpgroho.js?... http://www.usvetsinc.org/.../superfish.js?... http://www.usvetsinc.org/.../jquery.bgiframe.min.js?... http://www.usvetsinc.org/.../jquery.cycle.js?... A Put CSS at top F Put JavaScript at bottom There are 20 JavaScript scripts found in the head of the document http://www.google-analytics.com/ga.js http://www.usvetsinc.org/wp-includes/js/l10n.js?... http://ajax.googleapis.com/.../jquery.min.js http://ajax.googleapis.com/.../jquery-ui.min.js http://www.usvetsinc.org/.../jquery.form.js?...'>http://www.usvetsinc.org/.../jquery.form.js?... http://www.usvetsinc.org/.../mailchimp.js?...'>http://www.usvetsinc.org/.../mailchimp.js?... http://www.usvetsinc.org/wp-includes/js/comment-reply.js?...'>http://www.usvetsinc.org/wp-includes/js/comment-reply.js?... http://www.usvetsinc.org/.../jquery.nivo.slider.pack.js?...'>http://www.usvetsinc.org/.../jquery.nivo.slider.pack.js?... http://www.usvetsinc.org/.../jquery.colorbox-min.js?...'>http://www.usvetsinc.org/.../jquery.colorbox-min.js?... http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js http://www.usvetsinc.org/.../jquery.easing.1.3.js'>http://www.usvetsinc.org/.../jquery.easing.1.3.js http://www.usvetsinc.org/.../jquery.timers-1.2.js'>http://www.usvetsinc.org/.../jquery.timers-1.2.js http://www.usvetsinc.org/.../jquery.galleryview-3.0.min.js'>http://www.usvetsinc.org/.../jquery.galleryview-3.0.min.js http://a.vimeocdn.com/p/1.4.1/js/swfobject.v2.2.js http://a.vimeocdn.com/p/1.4.1/js/player.core.opt.js http://b.scorecardresearch.com/beacon.js http://static.ak.fbcdn.net/rsrc.php/v1/yo/r/TPy3KTYpWNB.js http://static.ak.fbcdn.net/rsrc.php/v1/yM/r/q7r8uOrRxLB.js http://static.ak.fbcdn.net/rsrc.php/v1/yt/r/_2JDxhM_bgE.js http://static.ak.fbcdn.net/rsrc.php/v1/yk/r/NdcRVhQ8IGY.js A Avoid CSS expressions F Reduce DNS lookups The components are split over more than 4 domains www.usvetsinc.org: 57 components, 1509.5K (55.7K GZip) s.gravatar.com: 3 components, 34.2K (9.6K GZip) www.google-analytics.com: 3 components, 31.8K (12.5K GZip) ajax.googleapis.com: 2 components, 277.1K (78.3K GZip) stats.wordpress.com: 2 components, 2.7K (0.9K GZip) edge.quantserve.com: 1 component, 5.2K (2.1K GZip) www.helpvetsnow.org: 8 components, 225.2K player.vimeo.com: 1 component, 8.3K (2.7K GZip) a.vimeocdn.com: 4 components, 89.5K (19.8K GZip) b.scorecardresearch.com: 1 component, 2.0K (1.1K GZip) www.facebook.com: 3 components, 48.2K (10.5K GZip) static.ak.fbcdn.net: 20 components, 583.0K (154.2K GZip) profile.ak.fbcdn.net: 10 components, 24.6K external.ak.fbcdn.net: 2 components, 5.1K (5.1K GZip) a5.sphotos.ak.fbcdn.net: 1 component, 14.3K platform.ak.fbcdn.net: 1 component, 0.3K photos-d.ak.fbcdn.net: 1 component, 0.5K B Minify JavaScript and CSS There are 2 components that can be minified http://www.usvetsinc.org/.../pascal.css?... http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js'>http://www.usvetsinc.org/.../jay.js

Share this post


Link to post
Share on other sites
kastelic
Deactivate all Plugins that you aren't using. Also try a caching plugin like w3 total cache. It speeds up your site and has functions for combining javascript and CSS, though I don't know how well those work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×