Jump to content

HTML5 + ASYNC (Loading Javascript)


Marlon Nardi

Recommended Posts

Good morning Farshad,

I wonder how do I use the async tag for loading the javascript.

Today my applications use many external javascript (not UniGui) and the page is not displayed while all javascript is loaded.

Today I use this:

 

Self.CustomFiles.Add ('my.js');

or

UniAddJsLibrary ('/my.js' True, [upoFolderJS, upoPlatformBoth]);

One solution to this would be to use the async example tag:

<script async src="my.js">

https://developers.google.com/speed/docs/insights/BlockingJS

 

how I do it in UniGui?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...