ID:1981555
 
Applies to:Webclient
Status: Open

Issue hasn't been assigned a status value.
Related to id:1980113

I was wondering if scripts could be loaded synchronously into the webclient, specifically I'm trying to include jQuery and now I have to manually check if it's loaded before I can do anything.

What I wonder is: How are scripts being loaded? Maybe I can point out a way to do it synchronously, or come up with some code that can be used to detect if it's been loaded (so you can make it synchronous yourself).

Ideally scripts should only load asynchronously if the "async" attribute is provided in the script tag.
Would it be feasible to provide an option to only include inline scripts after the external scripts (scripts with a 'src' attribute) have been loaded?
I'm not sure. The way inline scripts load makes this slightly problematic, but I plan to look into this further.