You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was mentioned in docs that it is good practise to put scripts in the head of the page with defer attribute. That gives a very good performance boost since the loading of the main scripts is not blocking the rendering of the HTML on a first load.
We are using hot-controls (turbo router) and have scripts inside pages and partials like this:
[resources]
js[] = “path/to/controls.js”
These scripts are loaded prior framework, causing errors then first loaded. (next pjax visits are fine, since the oc. is initialized already)
Need a way to defer load them something like: {% scripts defer %} or {% put scripts defer %}?
It was mentioned in docs that it is good practise to put scripts in the head of the page with defer attribute. That gives a very good performance boost since the loading of the main scripts is not blocking the rendering of the HTML on a first load.
We are using hot-controls (turbo router) and have scripts inside pages and partials like this:
These scripts are loaded prior framework, causing errors then first loaded. (next pjax visits are fine, since the oc. is initialized already)
Need a way to defer load them something like: {% scripts defer %} or {% put scripts defer %}?
Forum link to issue: https://talk.octobercms.com/t/using-defer-for-js-bundle-experiment-performance/3234/3
The text was updated successfully, but these errors were encountered: