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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Handle the order in which the web resources are loaded

(0) ShareShare
ReportReport
Posted on by 25

Hi guys,

Maybe, someone could tell me if we currently have a mechanism to handle with the async loading of the web resources in the newer version of CRM v9 when the legacy rendering is disabled?

I have just read the article published by Microsoft about the web resources dependencies, and it seems that the "Web resource dependencies does not provide any control over the order in which the web resources are loaded. All the web resources are loaded asynchronously and in parallel. If you have a JavaScript web resource which depends on another JavaScript web resource to be loaded and initialized before it can be initialized, you will need to manage that dependency in another way."

Does it mean that we still need to handle with this in other way? Have you overcome this somehow?

Kind regards

I have the same question (0)
  • Suggested answer
    Ankit Sabharwal Profile Picture
    on at

    Hello Partner,

    Hope this post finds you well. As per the article yes , all the web resources are  loaded asynchronously and we don't have the control. But if order is required, then we can refer the javascript in another web resource or we can load the javascript in the required javascript and perform our task. We can also come up with setting the timeout for certain period and can check if method is available or not.

    Unfortunately for now this needs to be taken care by the customization as Out of the box feature is not handling the order of loading till now.

    Hope this post helps.

    Best regards,

    Ankit

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • sermoc Profile Picture
    25 on at

    Hi Ankit,

    I was doing some testing and I could see that CRM seems to load the scripts asynchronously but it doesn't calls the OnLoad event until all has been loaded.

    We use the same organization with legacy and non legacy checkmark and when it was non legacy, we can see that the web resources are loaded in parallel but CRM wait for its downloading and evaluation, therefore the onload method is not used until all of them have been loaded.

    Does it make sense for you ?

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans