soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Performance: Option to inline page CSS #1865

Open AntonyXSI opened 3 years ago

AntonyXSI commented 3 years ago

Currently the Oxygen page builder loads the page template styles (oxygen-cache*) as an external CSS file from the uploads/oxygen folder. Many of these files are only a few kb's and block the rendering of the page.

Due to the way the CSS is loaded plugins such as Autoptimize fail to pick up and optimize these CSS files.

Having an option or filter to inline the custom page CSS in the head would help with performance and decrease rendering times, especially on subsequent visits as the browser could begin rendering the page when the HTML has downloaded.

Other page builders have this option or default to this functionality including; WP Bakery, Elementor and Divi.

wala0003 commented 2 years ago

+1