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
I want to load some of my .css files and .js files "lazy". For this purpose I need only the url to the files.
Example {% javascript 'startpage' %}
returns a <script> tag
But I would like to do something like
var startpage_url = "{% javascript 'startpage' urlonly %}";
// load the script on a specific event (For example user scrolled down)
$(document.head).append($('<script>', { src: startpage_url }));
How can I do this? I guess this is not possible out of the box?
The text was updated successfully, but these errors were encountered:
Hi,
I want to load some of my .css files and .js files "lazy". For this purpose I need only the url to the files.
Example
{% javascript 'startpage' %}
returns a <script> tag
But I would like to do something like
How can I do this? I guess this is not possible out of the box?
The text was updated successfully, but these errors were encountered: