Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #213540

    safesite
    Participant

    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-caching

    Is this all I can do or is there any other way to help these issues?

    #213796

    Paul R
    Moderator

    Hi 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.

    #349915

    mikebrandon25
    Participant

    Hi 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

    #350074

    Lely
    Moderator

    Hello 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.

    #710207

    new_wp
    Participant

    Hi 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>

    #710211

    Rupok
    Member

    Hi @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!

    #891165

    BenRyan.me
    Participant

    Hey 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

    #891753

    Christian
    Moderator

    Thanks for sharing, Ben. 🙂