Jump to content


Photo
- - - - -

GTmetrix Give my PageLines Site a Score of 'F'

GTMetrix PageSpeed Speed up Site

Best Answer Simon_P , 11 July 2013 - 08:57 AM

if you go to this site: http://www.whatsmyip...mpression-test/

and add any of those css/js urls from that wall of text you pasted like this one:

http://onlineitdegre...ootstrap.min.js

 

The page wil inform you that the server is not compressing the files, this is a server issue.

 

Seeing blocks in htaccess for DEFLATE and mod_gzip I can only assume that both are disabled on your server.

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 captainslog

captainslog

    Member

  • Members
  • 28 posts
  • Country: Country Flag

Posted 11 July 2013 - 08:43 AM

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

 

Please Login or Register to see this Hidden Content

 

  • Compressing

    Please Login or Register to see this Hidden Content

    could save 142.8KiB (82% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 20.5KiB (73% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 1.0KiB (60% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 509B (55% reduction).

 

 

Specify a Vary: Accept-Encoding header

 

The following publicly cacheable, compressible resources should have a "Vary: Accept-Encoding" header:

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:

Remove query strings from static resources

 

Inline small JavaScript

 

The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.

Please Login or Register to see this Hidden Content

should inline the following small resources:

 

Google PageSpeed Recommendations

 

Google's Page Speed is also recommending some GZIP updates including:

 

  • Compressing

    Please Login or Register to see this Hidden Content

    could save 24.7KiB (77% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 20.5KiB (73% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 9.9KiB (79% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 3.8KiB (63% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 1.0KiB (60% reduction).
  • Compressing

    Please Login or Register to see this Hidden Content

    could save 509B (55% reduction).

YSlow Recommendations

 

Compress components with gzip

 

There are 4 plain text components that should be sent compressed

Configure entity tags (ETags)

 

There are 7 components with misconfigured ETags

Use a Content Delivery Network (CDN)

 

There are 8 static components that are not on CDN.

 

Pingdom Recommendations

 

Specify a Vary: Accept-Encoding header

 

Remove query strings from static resources

 

 

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} !.*

Please Login or Register to see this Hidden Content

.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$


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

RewriteRule \.(jpg|jpeg|png|gif)$

Please Login or Register to see this Hidden Content

[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



#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 11 July 2013 - 08:57 AM   Best Answer

if you go to this site: 

Please Login or Register to see this Hidden Content

and add any of those css/js urls from that wall of text you pasted like this one:

Please Login or Register to see this Hidden Content

 

The page wil inform you that the server is not compressing the files, this is a server issue.

 

Seeing blocks in htaccess for DEFLATE and mod_gzip I can only assume that both are disabled on your server.



#3 captainslog

captainslog

    Member

  • Members
  • 28 posts
  • Country: Country Flag

Posted 11 July 2013 - 09:37 AM

Thanks Messer,

 

I'm contacing support. I've now have to wonder and I'm hoping someone might be able to enlighten me, if some of the these other items are also Apache realted:

 

- Enable Keep-Alive
- Leverage browser caching
- Enable gzip compression
- Minify JavaScript
- Specify a Vary: Accept-Encoding header

 

Regards,

 

Jeff



#4 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 11 July 2013 - 09:38 AM

My name is not Messer, as yours is not Newbie

 

Yes all of them are server variables.



#5 captainslog

captainslog

    Member

  • Members
  • 28 posts
  • Country: Country Flag

Posted 11 July 2013 - 10:03 AM

My apologies Simon.  I don't post here often, if ever, and was looking in the wrong place when looking for your name.

 

Thanks again, for you help.



#6 Martin Davies

Martin Davies

    Advocate

  • Moderators
  • 2380 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 11 July 2013 - 04:29 PM

this topic is marked as resolved 







Also tagged with one or more of these keywords: GTMetrix, PageSpeed, Speed up Site