web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Displaying UI friendly Loading Image before CRM Page loads completely

(0) ShareShare
ReportReport
Posted on by

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.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    use a timeout of 2 secs for other functions to load and load loading image without timeout

  • Verified answer
    tw0sh3ds Profile Picture
    5,600 on at

    Hi,

    You should change your design - instead of having multiple onLoad functions, you should have one onload function, inside you can first make the logic to show the picture or whatever you want and then start all the heavy operations maybe even after some timeout (or at least hen you are certain that picture is being desplayed)

  • Community Member Profile Picture
    on at

    Thank you for the solution. It worked fine but date fields does not show up Calendar and lookup fields are not clickable after implementing loading image. Any idea on what could be the reason?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans