How to optimize YSlow Score

Posted in: Newspaper
Post count: 107

Hi… After some optimize, my blog is get good score on GTmetrix.. but I found still low score for YSlow Score, please take a look at this image https://s10.postimg.org/lj5ljtm2h/Screenshot-2017-12-20_GTmetrix_Performance_Report_A_95_B_80.png. How to optimize “Add Expires headers and Minify” “JavaScript and CSS”? both are in high and medium priority.

Thank you

Post count: 9544

Add the expiration headers for your own content; you can’t do so for anything loaded from other sites.

You can minify the CSS and .js but a little tricky. See my long winded tutorial in the docs > tutorials > best of forums here for one way to do that.

Post count: 107

Here is my .htaccess look like:

# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault “access plus 5 seconds”
ExpiresByType image/x-icon “access plus 604800 seconds”
ExpiresByType image/jpeg “access plus 604800 seconds”
ExpiresByType image/png “access plus 604800 seconds”
ExpiresByType image/gif “access plus 604800 seconds”
ExpiresByType application/x-shockwave-flash “access plus 604800 seconds”
ExpiresByType text/css “access plus 604800 seconds”
ExpiresByType text/javascript “access plus 604800 seconds”
ExpiresByType application/javascript “access plus 604800 seconds”
ExpiresByType application/x-javascript “access plus 604800 seconds”
#ExpiresByType text/html “access plus 600 seconds”
#ExpiresByType application/xhtml+xml “access plus 600 seconds”
</ifModule>
# END Expire headers

<IfModule mod_deflate.c>
<filesMatch “\.(js|css|woff|html|php)$”>
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>

And I did minify CSS and js automaticly by CloudFlare

Post count: 23312

Hello irfan.id,

Sorry for this but please notice that if you will check our demo preview you will see that the page score is very good. Notice that the page speed depends greatly on how well your site is customized and optimized. The only useful guide, in this case, can be found here
-> https://forum.tagdiv.com/how-to-make-the-site-faster/ Also, you can read here -> https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/

Hope this helps!

Thanks for the message!

Post count: 53

are those guides still relevant with the new updates in place? 🙂 thanks

Post count: 23312

Hello,

Yes, all as I said you above are still relevant to each update.

Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.