Outputting JS after /concrete/js/app.js
Permalink
One of my packages uses ConcreteAjaxSearch and I therefore want to load its JavaScript after /concrete/js/app.js.
If I use requireAsset with an ASSET_POSITION_FOOTER position, it's still before app.js.
Is there a workaround?
Thanks, Adri
If I use requireAsset with an ASSET_POSITION_FOOTER position, it's still before app.js.
Is there a workaround?
Thanks, Adri
If there are other ready handlers that need to run first, you can cause a change of execution sequence by inserting a zero timeout.