How to use Concrete5 Java Compression Capability
Permalink
Hello.
I see that Concrete5 have the capacity of compacting CSS and Javascript and I can see nice results with CSS but how can I enable this function to compact my java script?
Because I use this method:
...maybe doesn't enable the compression function.
How can I load my custom java script and make use of Concrete5 compress capabilities?
Thank you very much!
Best regards and happy new year!!!
I see that Concrete5 have the capacity of compacting CSS and Javascript and I can see nice results with CSS but how can I enable this function to compact my java script?
Because I use this method:
<script type="text/javascript" src="<?=$view->getThemePath()?>/js/xxxx.js"></script>
...maybe doesn't enable the compression function.
How can I load my custom java script and make use of Concrete5 compress capabilities?
Thank you very much!
Best regards and happy new year!!!
Thank you for your reply MrKDilkington.
But from what I understand you got good results when you build a custom Block but I still don't see the minify affecting the scripts that I load in my footer element that it's common to all my website.
I'm reading wrong? Or we only get this advantage if we create a block?
But from what I understand you got good results when you build a custom Block but I still don't see the minify affecting the scripts that I load in my footer element that it's common to all my website.
I'm reading wrong? Or we only get this advantage if we create a block?
I recorded my experience with 5.7 asset caching here.
http://www.concrete5.org/community/forums/5-7-discussion/asset-cach...