Closed JuKu closed 5 years ago
Instead of:
{if $JS_ALL_HEADER_EMPTY != true}
<!-- header javascript -->
<script language="javascript" type="text/javascript" src="{$BASE_URL}/js.php?style=texturedblue&hash={$JS_HASH_ALL_HEADER}&position=header"></script>
{else}
<!-- DEBUG: header javascript was removed for optimization, because generated js script was empty -->
{/if}
More like this:
{JS async=true style=texturedblue}<Position>{/JS}
My proposal:
{RES load="ThisParamIsOptional"}css_style{/RES}
Example style:
I agree with your last proposal.
Dwoo Plugin: integrate css / js files if they are not empty.
Parameter: style_name, media, position