Best practices for xtheme / css

Hello,

For performance, what is better with xtheme, to have an entry in the css file for all single page blog posts to have padding so the text doesn’t hug the edge of the screen on mobile … OR … .to do this at an element level?

Does one increase the sites transfer file more than the other? or better / worse for performance?

Hello Garlicfox,

Thanks for writing in!

Adding the CSS at an element level is way better than putting the custom CSS in a separate file. If you have it at an element level, it will only be loaded once the element is present on the page. For the separate file, even if the element is not present, the separate file is still being loaded on the page. Thus, it would take a toll on your site’s performance. Kindly check out these video tutorials on how to optimize your site’s performance especially if you choose to place the custom CSS in a separate file.

Best Regards.

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