How to remove the empty compiled_assets/styles.css and compiled_assets/scripts.js

Solved
Bulxar
Tourist
11 1 0

How to remove the empty compiled_assets/styles.css and compiled_assets/scripts.js.

Expected Behavior

No style rules and javascript code in any of site setctions. Do not load those empty files.

Actual Behavior

Site is loading empty files which are not needed and impact the page speed

SCREENSHOT

Screenshot from February 17, 2021 1_51 AM.png

0 Likes
Bulxar
Tourist
11 1 0

This is an accepted solution.

SOLUTION

REMOVE THIS LIQUID DECLARATIONS FROM ALL SECTIONS IF YOU ARE NOT USING THEM

{% stylesheet %}
{% endstylesheet %}

{% javascript %}
{% endjavascript %}

 

0 Likes