Hi,
We are working on a custom entity in CRM 2015 On-Premise which consists of multiple on Load scripts because of which it is taking nearly half a minute for the page to load completely. There is no scope of code optimization. We came with an idea of displaying loading image to the user so that user will at least have a visual image of page processing. we wrote a JavaScript for the same and placed it as the first function in the list of On Load functions of the event handler. But we are getting the loading result only after all the JavaScripts are triggered which is of no use. Is there a way where we can trigger an event before JavaScripts are fired in CRM? any other solution other than loading image is also appreciated.