Javascript: async with Orchard?

More of my development in a CMS is backend, using ravor views and having multiple js files this issue seems to keep coming up. async function would seem like a good solution but for now I dont need it instead I've been getting using orchard's fluid sync to include the files before or after in the view. In this context I'm not waiting for the file but letting it run when its loads. For script to find something on the page I need it to wait sometimes for other things to load but setting it to the footer is the proper way to resolve this.

{% script name:"customscript", at:"Foot" %}

Still I feel like the role of the js code isnt being properly handled if it needs be inserted at a certain part of the page. This may just be a problem with how I think with single page applications vs a cms.

Popular posts from this blog

Installing Windows on Acer chromebook 15 cb3-532

Entity Framework: ToListAynsc & WhereAsync

NLog 4.6.2 Console Application