A Anser Well-Known Member Licensed User Longtime User Nov 21, 2018 #1 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 Code: Copy 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
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 Code: Copy 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
alwaysbusy Expert Licensed User Longtime User Nov 21, 2018 #2 Yes, put the in the initialize() of ABMApplication. It is for the whole app. Note that if the layout seems a bit weird the first time on entering a page, this is because the css is not loaded yet. It is up to you what you prefer. Upvote 0
Yes, put the in the initialize() of ABMApplication. It is for the whole app. Note that if the layout seems a bit weird the first time on entering a page, this is because the css is not loaded yet. It is up to you what you prefer.