Global Css VS Local CSS - Page Speed

Hi, just have a quick question about the global and local CSS code in regard to the page speed.

If I add a CSS code to the global css to make changes on some pages, but not all pages, would it be more efficient to add the code to the local css? I just wonder if that affects the page speed in any way if the global css code is loading on every page even when not needed. I haven’t added that much code but maybe around 100 lines. The change that I want to happen is actually for the majority of my pages.

Any advice you could give me here?

thanks in advance!
Dennis

Hello There,

Local css will give your good site performance because it will only load css that is used in the page. When you insert the css in the global css, those css will be loaded on the page even if the css does not applies for the page you are loading. The best thing you can do is to use local page css if you can. And if ever there is a need for a global css then that’s the time that you will place your css in the global css.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.