What generates compiled_assets/styles.css?

Sometimes when I work on client sites that file shows up, sometimes it doesn’t, it’s annoying since a client will see that there is a file under the “Eliminate Render blocking Resources” tab in PageSpeed Insights and will think I’m not doing my job, in one case the file is was totally empty, just take up a http request.

Why is this file created, and is there a trick to prevent it from being generated?

If i understood correctly, this file is generated by the {% stylesheet %} {% end stylesheet %} tags, usually found under the section settings schema.

Check all your sections and try deleting the tags. Also, you might find similar tags for javascript.

4 Likes

Thanks, I’ll test if that’s true.

removing those tags worked for me, thanks

1 Like