Jump to content

Archived

This topic is now archived and is closed to further replies.

icecast

Google Pagespeed Terrible - 48 Javascript Lines

Recommended Posts

icecast

Pagespeed statistics on DMS are terrible.  I even switched from Apache to NGINX with Pagespeed built in.  No change in pagespeed.

 

I am only using 2 plugins (captcha, post types order) and 2 sections (audio player, better carousel - which has no images).

 

I also use AWS S2 for all my custom images (which are all small, and only total 5), and they all have cache and expire settings enabled.

 

In my footer, there are 48 lines of javascript!  How is this revolutionary design?!

Share this post


Link to post
Share on other sites
Simon

There should be no js in the footer. Can you provide a link?

Share this post


Link to post
Share on other sites
finon

have the same problem, page speed is extremely slow and gzip cache plugins do not run. Now how can you speed up the page again?

Share this post


Link to post
Share on other sites
Rob

Obviously these footer scripts are coming from plugins.  Deactivate them. 


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
nokow

I also have a lot of javascript in the footer like :
 

  <script type='text/rocketscript' data-rocketsrc='http://www.mysite.com/wp-content/themes/dms/editor/js/utils.sprintf.js?ver=0.9.7'></script>   <script type='text/rocketscript' data-rocketsrc='http://www.mysite.com/wp-content/themes/dms/editor/js/form.params.js?ver=0.9.7'></script>   <script type='text/rocketscript' data-rocketsrc='http://www.mysite.com/wp-content/themes/dms/editor/js/form.store.js?ver=0.9.7'></script>

 

Is DMS a plugin ? a plugin in the theme folder ? ver=0.9.7 ? 

Share this post


Link to post
Share on other sites
Simon

There are a lot of js files used by the editor when you are logged in and editing the site. If you are viewing the site logged out non of those scripts will be loaded.

Share this post


Link to post
Share on other sites
bhowton
Simon

Your using cloudflare doesnt that concatenate scripts? 

Share this post


Link to post
Share on other sites

  • Similar Content

    • dreamsight
      By dreamsight
      Hi, 
      I'm trying to make improvements to 2 of our sites PageSpeed scores using W3 and Autoptimize, specifically Eliminate render-blocking JavaScript and CSS in above-the-fold content using Autoptimize.
      Both sites are running on Pagelines (2.2.4) but I'm having trouble locating the aggregated CSS stylesheet which should be at the top of the site header, but on these particular sites the source code look much different (http://imgur.com/a/0kqbc - Actual site we are improving)
      Whereas most of the sites we have improved in the past (inclduing the example demo site of the plugin) the source code looks like this; http://imgur.com/LjRy5K7 (Tutorial Site Example of Source Code with Aggregated CSS link)
      I've turned off all the plugins on both sites and at this point I am 99.9% sure the source code formatting has been 'altered' by pagelines. 
      Does anybody know where/how i can locate the stylesheet I need?
      Thanks in advance.
    • finon
      By finon
      the website with dms is very slow in google page speed. what can I do? many Worpress plugins do not work. I'm grateful for any ideas and help
    • captainslog
      By captainslog
      I've been working with PageLines for sometime now. I've taken a sample site and am trying to fix its speed problems. I've pretty much fixed everything but the PageLines theme issues.
       
      My low scores, it seems, are due to PageLines issues.
       
      I went through 4 grading methods and am listing everything recommendation below  an A or 90% grade. All but one recommendations is PageLines related. I can fix the CDN recommendations, but I need your help on the the others.
       
      At the time fo this writing, here are my scores:
       
      GTMetrix Page Speed Grade is 48 or F GTMetrix YSlow Grade is 91% Google's Page Speed Score Using FireFox Plugin and FireBug is 79. Pingdom Grade is 89  
       
      Here's my setup
      WordPress Version 3.5.2 PageLines Version: 2.4.4 Database: Optimized Server Type: VPS through LiquidWeb Active Plugins: Use Google Libraries (without it scores are lower GTMetrix Page Speed is 29 I'm listing the recommendations and the specific files and their locations GTMetrix (Page Speed, YSlow), Google's PageSpeed using Firefox Plugin, and Pingdom.
       
       
      Desired Outcomes
      My current GZIP code is taking care of everything but the PageLines areas of the theme. What specific .htaccess code can I use to fix the problem areas. How do I fix the "Vary: Accept-Encoding header" suggested fixes for PageLines files? How do I fix the "Accept-Encoding header" suggested fixes for PageLines files? How do I fix the "Remove query strings from static resource" suggested fixes for PageLines files? How do I fix the "Enable Keep-Alive" for the PageLines file locations listed below? How do I fix the "7 components with misconfigured ETags" that are PageLines files?  
      I am asking for very specific recommendations to fix the PageLines issues. I'm not looking to blame or say that things are bad. I love PageLines, but I'm needing to fix the issues that reliabel sources are telling me need to be fixed.
       
      I've got other issues like security and my own plugin, but I've removed all of that from this site, and right now I'm trying to isolate the PageLines issues and get those fixed.
       
       
      GTmetrix Recommendations
       
      Enable GZIP
       
      I've enable gZip with the following htaccess code, and it fixed everything but the PageLines errors. The entire .htaccess file contents is listed below.
       
      # WPhtC: Setting mod_gzip
      <ifModule mod_gzip.c>
      mod_gzip_on Yes
      mod_gzip_dechunk Yes
      mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
      mod_gzip_item_include handler ^cgi-script$
      mod_gzip_item_include mime ^text/.*
      mod_gzip_item_include mime ^application/x-javascript.*
      mod_gzip_item_exclude mime ^image/.*
      mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
      </ifModule>
       
      And
       
      # WPhtC: Setting mod_deflate
      <IfModule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4.0[678] no-gzip
      BrowserMatch bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent env=!dont-vary
      </IfModule>
       
      GTMetrix is Suggesting I Fix the following using GZIP
       
      Enable gzip compression
       
      Compressing http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css could save 142.8KiB (82% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 could save 20.5KiB (73% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 could save 1.0KiB (60% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 could save 509B (55% reduction).  
       
      Specify a Vary: Accept-Encoding header
       
      The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:
      http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css Enable Keep-Alive
       
      Resources with a "?" in the URL are not cached by some proxy caching servers. Remove the query string and encode the parameters into the URL for the following resources:
      http://onlineitdegreeprograms.net/ http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/pagelines.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/[email protected] http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/branding/rss.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css Remove query strings from static resources
       
      http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 Inline small JavaScript
       
      The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.
      http://onlineitdegreeprograms.net/ should inline the following small resources:
      http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2  
      Google PageSpeed Recommendations
       
      Google's Page Speed is also recommending some GZIP updates including:
       
      Compressing http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css could save 24.7KiB (77% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 could save 20.5KiB (73% reduction). Compressing http://onlineitdegreeprograms.net/wp-includes/css/admin-bar.min.css?ver=3.5.2 could save 9.9KiB (79% reduction). Compressing http://onlineitdegreeprograms.net/wp-includes/js/admin-bar.min.js?ver=3.5.2 could save 3.8KiB (63% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 could save 1.0KiB (60% reduction). Compressing http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 could save 509B (55% reduction). YSlow Recommendations
       
      Compress components with gzip
       
      There are 4 plain text components that should be sent compressed http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 Configure entity tags (ETags)
       
      There are 7 components with misconfigured ETags http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/branding/rss.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/pagelines.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/[email protected] Use a Content Delivery Network (CDN)
       
      There are 8 static components that are not on CDN.
      http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/branding/rss.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/pagelines.png http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/[email protected]  
      Pingdom Recommendations
       
      Specify a Vary: Accept-Encoding header
       
      http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2 http://onlineitdegreeprograms.net/wp-content/uploads/pagelines/compiled-css-1373512887.css Remove query strings from static resources
       
      http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.blocks.js?ver=1.0.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/js/script.bootstrap.min.js?ver=2.3.1 http://onlineitdegreeprograms.net/wp-content/themes/pagelines/sections/navbar/navbar.js?ver=3.5.2  
      The Enitre .HTACCESS File Contents
       
      # BEGIN Wordpress

      # WPhtc: Begin Custom htaccess
      ## BROWSER CACHING ##
      ExpiresActive On
      ExpiresByType image/jpg "access 1 year"
      ExpiresByType image/jpeg "access 1 year"
      ExpiresByType image/gif "access 1 year"
      ExpiresByType image/png "access 1 year"
      ExpiresByType text/css "access 1 month"
      ExpiresByType application/pdf "access 1 month"
      ExpiresByType text/x-javascript "access 1 month"
      ExpiresByType application/x-shockwave-flash "access 1 month"
      ExpiresByType image/x-icon "access 1 year"
      ExpiresDefault "access 1 week"
      ## BROWSER CACHING ##
      # WPhtc: End Custom htaccess

      # WPhtC: Disable ServerSignature on generated error pages
      ServerSignature Off

      # WPhtC: Disable directory browsing
      Options All -Indexes

      # WPhtC: Protect WP-config.php
      <files wp-config.php>
      order allow,deny
      deny from all
      </files>

      # WPhtC: Protect .htaccess file
      <files ~ "^.*\.([Hh][Tt][Aa])">
      order allow,deny
      deny from all
      </files>

      # WPhtC: Protect comments.php
      RewriteCond %{REQUEST_METHOD} POST
      RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
      RewriteCond %{HTTP_REFERER} !.*http://onlineitdegreeprograms.net.* [OR]
      RewriteCond %{HTTP_USER_AGENT} ^$


      # WPhtC: Disable image hotlinking
      <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{HTTP_REFERER} !^$

      RewriteRule \.(jpg|jpeg|png|gif)$ http://onlineitdegreeprograms.net/wp-content/themes/pagelines/images/pagelines.png [NC,R,L]
      </IfModule>

      # WPhtC: Setting mod_gzip
      <ifModule mod_gzip.c>
      mod_gzip_on Yes
      mod_gzip_dechunk Yes
      mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
      mod_gzip_item_include handler ^cgi-script$
      mod_gzip_item_include mime ^text/.*
      mod_gzip_item_include mime ^application/x-javascript.*
      mod_gzip_item_exclude mime ^image/.*
      mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
      </ifModule>

      # WPhtC: Setting mod_deflate
      <IfModule mod_deflate.c>
      AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4.0[678] no-gzip
      BrowserMatch bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent env=!dont-vary
      </IfModule>

      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      # END Wordpress
×