-
AuthorPosts
-
February 23, 2015 at 10:02 pm #213540
Hello,
I contacted my host after experiencing some severe lag in loading my website and they directed me to this Page Speed Grade report:
It seems the bulk of the issue is nearly 27 Javascript and CSS files that load everytime. The Page Speed Test recommends a few things: 1. Add Expires headers, 2. Make fewer HTTP requests, 3. Make Javascript and CSS external, and 4. Use a Content Delivery Network (CDN).
From what I can tell, options 2 and 3 are not something I should try because that has to do with the theme files themselves. I am curious about the first option, Add Expires Headers, and the last, Content Delivery Network. The Page Speed results included this link: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-cachingIs this all I can do or is there any other way to help these issues?
February 24, 2015 at 5:02 am #213796Hi Cindy,
We have a detailed article regarding this that you could follow.
Pleases refer to this link – https://theme.co/x/member/kb/performance/
With regards to expire headers, you can add the code below in your .htaccess file located at the root directory of your site.
<IfModule mod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year" # Images ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" # CSS ExpiresByType text/css "access plus 1 month" # Javascript ExpiresByType application/javascript "access plus 1 year" </IfModule>
Hope that helps.
August 4, 2015 at 1:01 pm #349915Hi there,
I too have been having issues with loading speeds, especially of the Portfolio and Rev Slider (see leafandstone.co.uk).
My host just said “optimise your database”. He didn’t say much more! I’ll have a look through your detailed article on Performance (https://community.theme.co//kb/performance/); is this effectively a way to “optimise my database”?
Also, is it safe to add the above code to my htaccess file too? I saw similar messages about ‘Expires Headers’ and ‘make fewer http requests’ on pagespeedloader..
Any advice would be gratefully received!
Many thanks
August 4, 2015 at 4:53 pm #350074Hello There,
Thanks for updating the thread.
Please always backup before doing anything.
You may refer to the following article:http://www.wpbeginner.com/plugins/how-to-clean-up-your-wordpress-database-for-improved-performance/
https://wordpress.org/plugins/wp-optimize/
Please note that we cannot provide support for third party plugins. If you’re not comfortable doing it yourself you can contact a web developer.Yes, adding above htaccess code is safe. And if you will follow suggestion on our article https://community.theme.co//kb/performance/ it will improve loading permornance of your site.
Hope this helps.
December 16, 2015 at 10:05 pm #710207Hi there,
I’m also being told my site is loading slowly because it doesn’t have expires headers set. Should I also add the below to my .htaccess file located at the root directory of your site? Thank you!
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault “access plus 1 month”
# My favicon
ExpiresByType image/x-icon “access plus 1 year”
# Images
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
# CSS
ExpiresByType text/css “access plus 1 month”
# Javascript
ExpiresByType application/javascript “access plus 1 year”
</IfModule>December 16, 2015 at 10:10 pm #710211Hi @new_wp
Thanks for updating. You can add this to your
.htaccess
file. Also review the Performance article for more information about optimizing your site.Cheers!
April 19, 2016 at 10:55 pm #891165Hey fellow ThemeCo customers,
I’m currently running a Speed Optimisation special for the 1st 20 ThemeCo customers to contact me. Details can be found here: https://community.theme.co/forums/topic/themeco-speed-optimisation/
Cheers
– Ben Ryan
April 20, 2016 at 8:15 am #891753Thanks for sharing, Ben. 🙂
-
AuthorPosts