B4J Question [ABMaterial] Load javascript and css files after DOM

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

In the latest version of ABMaterial v4.51, it is mentioned that to make the pages loading a bit faster, you can Load javascript and css files after DOM via the following code
B4X:
ABM.LoadJavascriptsAfterDOM = True
ABM.LoadCSSAfterDOM = True

It is said in the release notes that this will load your css and javascript files using a script instead of a link in the html

May I know, which is the right section to apply the above code ?.
For eg in Sub Initialize of ABMApplication so that it is applicable globally to all the pages in the application
OR
on the Sub BuildPage() on each page before loading any Javascripts

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…