Atahualpa theme java script problem
This theme is great btw but I am having a small problem...
My site is running extremely slow so I used YSlow to find out what the problem was. I recieve an over all grade of "E" and it said that one of my major problems was that I had java scripts in the head document. That the rest of the page wont load until the java script loads. Where can I move my java scripts to without trashing my site? My site is : adventoutpost.com Here is what YSlow said: ---------------------------------------------- Grade F on Put JavaScript at bottom There are 13 Javacript scriptss found in the head of the document * http://pagead2.googlesyndication.com/pagead/show_ads.js * http://adventoutpost.com/wp-content/...n_utilities.js * http://adventoutpost.com/wp-includes...ery/jquery.js?... * http://adventoutpost.com/wp-content/...r-reloaded.js?... * http://adventoutpost.com/wp-content/...tools.v1.11.js * http://adventoutpost.com/wp-content/...gallery.js.php * http://adventoutpost.com/wp-content/...transitions.js * http://adventoutpost.com/wp-includes/js/tw-sack.js?... * http://adventoutpost.com/wp-content/...-js-packed.js?... * http://adventoutpost.com/wp-content/...js/wpsf-js.php * http://lite.piclens.com/current/piclens_optimized.js * http://www.intensedebate.com/js/getCommentCounts.php?... * http://www.intensedebate.com/js/countIt.php?... JavaScript scripts block parallel downloads; that is, when a script is downloading, the browser will not start any other downloads. To help the page load faster, move scripts to the bottom of the page if they are deferrable. -------------------------------------------------- |
2/3 of those JS files are from plugins. Try the PHP Speedy plugin to combine all of them into one single file. It would combines all CSS files into one too. You probably have many CSS files, too, so in your case the savings in server hits should easily outweigh the CPU processing required for PHP Speedy
|
PHP Speedy doesnt seem to work. When I activate it my site (adventoutpost.com) does not load at all (white screen) and in the PHP Speedy test cong section it says "PHP Speedy didn't find any JavaScript or CSS "
|
You can manually combine CSS and Javascript files and/or change their order. To remove the single files from the header look into the PHP files of the plugins you use for all the "actions" they add to "wp_head", something like (Example is from WPG2 plugin):
add_action('wp_head', 'wpg2_lightboxheader'); // Add G2 Header Elements add_action('wp_head', 'g2_addheader'); Then add this at the bottom of atahualpa332/functions.php PHP Code:
|
Ok so just be clear:
Look through all my active plugins for add_action('wp_head', 'something'); then I add <?php remove_action('wp_head','something',1); remove_action('wp_head','something',1); ?> with names corresponding to the plugins????? |
Yes, but regarding "names corresponding to the plugins" - the names of the actions can be anything and may not "correspond to the plugins" at all. You'll simply look through the files of each plugin to find all the add_action('wp_head', 'action_name') action names
http://www.google.com/search?q=wordp...action+wp_head |
Ok... So I followed your steps...
and now I cant log in. All I see is a white screen and can do anything... |
Change the theme directory name from atahualpa332 to something else, through FTP.
|
All times are GMT -6. The time now is 11:34 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.