Save the content of a custom CSS file to a local CSS file to make it static
May 14, 2019 at 18:11 (2 months ago)
We have a custom CSS file that is being regenerated each time a page is viewed. This can be seen in the top of the "waterfall" section within GTMetrix reports http://flywheel.link/088039b74384. This CSS file is loading the same content every time, but the server regenerates it since it's not a static file being linked to. We need a way to save the content of it to a local "custom.css" file and then link to that style within the theme to prevent the need for the server to regenerate that file every time it's loaded. We have some custom CSS we wrote to alter the theme to fit our design and want to make sure that doesn't get lost with a theme update. Would it be as simple as throwing it in my child theme folder?
May 17, 2019 at 00:37 (2 months ago)
My coder checked your issue and he said that you could use the cache to merge css and js resources.
And his suggestion is plugin: Autoptimize.
Pls try with this then let me know the result
We offer service for $29. If you would like to use it, please click here to provide your credential information.
Use our expert service to turn your ideas into reality. Click here to provide your needed information.
Our support service works from Monday to Friday.
Mean time (GMT +7):
+ 7:30 - 11:30 AM + 1:30 - 5:30 PM
We will try to answer all the questions within 24 hours and solve them as quickly as possible