Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #466631

    Hi!
    I have some concerns re: site speed after running a few tests. The most recent being from GTMetrix:
    http://gtmetrix.com/reports/www.siliconvalleyandbeyond.com/ZjcbfH5v

    This is the page we’re testing: http://www.siliconvalleyandbeyond.com/enchanting-english-cottage-in-the-heart-of-allied-arts/

    Two tips from GTMetrix that I would like your input/direction for:

    Defer parsing of JavaScript
    In order to load a page, the browser must parse the contents of all <script> tags, which adds additional time to the page load. By minimizing the amount of JavaScript needed to render the page, and deferring parsing of unneeded JavaScript until it needs to be executed, you can reduce the initial load time of your page.

    Serve Scaled Images:
    The following images are resized in HTML or CSS. Serving scaled images could save 14.4MiB (98% reduction).

    Comments: Is there a setting in Enfold that I should be using to serve scaled images?

    Thanks!

    Jaime

    #467113

    Hi jaimemerz!

    The best way to optimize a WordPress site is to use a caching plugin such as WP Supercache or W3 Total cache. A plugin such as BWP Minify is good for minifying the JS and CSS as well.

    For the images make sure that you crop them before uploading to make sure they are optimized for web.

    Best regards,
    Elliott

    #708106

    Hi all,
    I’m using both WP Supercache and BWP Minify but the result is 66%.
    Plus, if I use BWP I get 0 on Defer parsing of Javascript but if I use this code

    add_filter(‘clean_url’,’async_js’,11);
    function async_js($url) {
    if ( false !== strpos( $url, ‘jquery.js’ ) || false === strpos( $url, ‘.js’ )) {
    return $url;
    }
    return “$url’ defer=’defer”;

    I get 63 on Defer parsing of Javascript.
    Despite this, I still get a bad PageSpeed score.

    #708534

    Hi,

    Could you link to the results page please?

    Best regards,
    Rikard

    #709522

    I am still having issues with Page Speed on our website. I have WP Minify and WP Supercache installed and active, but the site is still receiving poor ratings. Do you have any other suggestions for increasing the score?

    #709973

    Update: I have removed WP Supercache because the hosting provider, WP Engine, disallows that plugin. I also did not see an improvement in page speed with the plugin installed.

    #709998

    Hey!

    WPEngine
    has an amazing speed result.
    You wold be better if you considered to hire a freelancer to help you with what you need and optimize the site with best results.

    Let us know if we can help yu with something else.

    Best regards,
    Basilis

    #709999

    btw. proof your images.
    You got wonderful images but on internet sometimes it is better to have small sizes of images.
    on three images i can obtain big loss of space but with less loss of quality and use please with a higher compression level and progressiv instead of optimized
    Chairs-around-outdoor-burning-fire-pit–1500×999.jpg : 173kb versus 500kb
    Los-Altos-Hills-Guesthouse-Main-House-Pool-Firepit-at-Dusk-1500×991.jpg : 152kb. versus. 434kb
    Modern-patio-next-to-swimming-pool-1500×999.jpg : 198kb. versus. 529kb

    see here : only in the sky you see a bit more jpg artefacts

    And keep in mind that this is a slideshow so these quality differences will not be easy to see in a few seconds.

    btw i only do a new save with more compression and in progressiv mode thats all – the dimensions are exactly the same

    #710000

    the footer has a gif file as background – no reason for that because there is no transparency at all.
    the gif got over 500kb. the jpg 63kb !

    klick on the images to see a bigger size

    #710001

    btw. i do not allways install wp-supercache. Sometimes it is a more and bigger benefit to have a good htaccess file on wordpress installation.

    If your server supports gzip and or mod_deflate i have often

    ( don’t forget to include the original entries in your existing htaccess file – something like this:)

    `# BEGIN WordPress
    <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`

    here is a standard htaccess file i often use (even to get better results on those testing pages :lol: )

    in addition to your existing entries !!! :

    # Deny from
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>
    
     
    # Directory Browsing
    Options All -Indexes
    
    # Keep-Alive
    <ifModule mod_headers.c>
       Header set Connection keep-alive
    </ifModule>
     
    # Gzip
    <IfModule mod_mime.c>
        AddType application/javascript          js
        AddType application/vnd.ms-fontobject   eot
        AddType application/x-font-ttf          ttf ttc
        AddType font/opentype                   otf
        AddType application/x-font-woff         woff
        AddType application/x-woff              woff
        AddType image/svg+xml                   svg svgz 
        AddEncoding gzip                        svgz
    </Ifmodule>
     
    # GZip Kompression
    <IfModule mod_gzip.c>
     mod_gzip_on       Yes
     mod_gzip_dechunk  Yes
     mod_gzip_item_include file      \.(html?|txt|css|js|svg|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>
    
     
    # Browsercache
    <IfModule mod_expires.c>
     ExpiresActive On
     ExpiresDefault "access plus 1 month"
     ExpiresByType text/css "access plus 1 month"
     ExpiresByType text/javascript "access plus 1 month"
     ExpiresByType text/html "access plus 1 month"
     ExpiresByType application/javascript "access plus 1 month"
     ExpiresByType application/x-javascript "access plus 1 month"
     ExpiresByType application/x-font-ttf "access plus 1 month"
     ExpiresByType application/x-font-woff "access plus 1 month"
     ExpiresByType application/x-woff "access plus 1 month"
     ExpiresByType application/xhtml-xml "access plus 600 seconds"
     ExpiresByType image/gif "access plus 1 month"
     ExpiresByType image/jpeg "access plus 1 month"
     ExpiresByType image/svg+xml "access plus 1 year"
     ExpiresByType image/svg "access plus 1 year“
     ExpiresByType image/png "access plus 1 month"
     ExpiresByType image/x-icon "access plus 1 month"
    </IfModule>
    
     
    # Deflate by FileType
    <IfModule mod_deflate.c>
     AddOutputFilterByType DEFLATE text/plain
     AddOutputFilterByType DEFLATE text/html
     AddOutputFilterByType DEFLATE text/xml
     AddOutputFilterByType DEFLATE text/css
     AddOutputFilterByType DEFLATE text/javascript
     AddOutputFilterByType DEFLATE image/svg+xml
     AddOutputFilterByType DEFLATE application/javascript
     AddOutputFilterByType DEFLATE application/xml
     AddOutputFilterByType DEFLATE application/xhtml+xml
     AddOutputFilterByType DEFLATE application/rss+xml
     AddOutputFilterByType DEFLATE application/atom_xml
     AddOutputFilterByType DEFLATE application/x-woff
     AddOutputFilterByType DEFLATE application/x-font-ttf
     AddOutputFilterByType DEFLATE application/x-font-woff
     AddOutputFilterByType DEFLATE application/javascript
     AddOutputFilterByType DEFLATE application/x-javascript
     AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>
     
    # ETag
    Header unset ETag
    FileETag None
    
    <FilesMatch "\.(ttf|otf|woff)$">
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    </IfModule>
    </FilesMatch>
    #710002

    on bwp minify don’t forget to set up the “Cache age” this is often mentioned by gtmetrix that the minified css f.e. got a too near expires header. etc.

    #710109

    Hi!

    Great suggestions.
    If not so inside into the manual thing, WPRocket always take care of all those and they also have an image minify service.

    Let us know if any other questions

    Cheers!
    Basilis

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.