Forums

How to fix CSS appearing on all pages (doesn't need to!) (2 posts)

  1. griffinjt
    Member
    Posted 2 years ago #

    Here is my issue.

    I have two plugins installed that like to load their CSS files on every page of my website: My Contact Form plugin and my reCaptcha plugin. However, these plugins only appear on certain pages. How do I fix it to where the CSS for these plugins only loads on the pages where the item is actually located? Is this even possible?

    It could potentially speed up my site more if I could fix this. Thanks for any help!

  2. ClaytonJames
    Member
    Posted 2 years ago #

    I think, as a general rule of thumb, once it's loaded into a viewers browser cache, it's called from there in most cases if needed again during a session. So, I think a second request for the style sheet for the plugins would actually (probably) be loaded from the cache on the users machine rather than your server.

    I'm not completely sure that is correct in your case, but it sounds good.

    :-)

Topic Closed

This topic has been closed to new replies.

About this Topic