Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Web Resources are not loading if they do not exit on the first tab

(0) ShareShare
ReportReport
Posted on by 1,530

Hi

I have 3 tabs that contain web resources.  The web resources do not exist under the first tab.   The web resources will only load if I click on the tab.

Is this standard with the UCI or is this a bug.

I did find this article stating that you have to click on the tab in order to load the web resource or move all you web resources under the first tab.

https://github.com/MicrosoftDocs/powerapps-docs/issues/554

I hope this is a bug and MS is fixing the issue.

  • Suggested answer
    Henry J. Profile Picture
    Henry J. 5,237 on at
    RE: Web Resources are not loading if they do not exit on the first tab

    Hello, 

    Indeed, this is by design to optimize performances.

    Have you referred to that article?

    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/optimize-form-performance#form-scripts

    Use collapsed tabs to defer loading web resources
    When web resources or IFRAMES are included in sections inside a collapsed tab they will not be loaded if the tab is collapsed. They will be loaded when the tab is expanded. When the tab state changes the TabStateChange event occurs. Any code that is required to support web resources or IFRAMEs within collapsed tabs can use event handlers for the TabStateChange event and reduce code that might otherwise have to occur in the OnLoad event.

    Henry

  • rthompson Profile Picture
    rthompson 1,530 on at
    RE: Web Resources are not loading if they do not exit on the first tab

    Okay.

    Thanks.  I have been trying to fix this issue.

    I will use what you suggest.

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,615 on at
    RE: Web Resources are not loading if they do not exit on the first tab

    Yes, this is by design today. community.dynamics.com/.../xrm-page-getcontrol-webresource-getobject-contentwindow-document-error-in-unified-interface

    Use something like this to skip the code execution.

    var iframeObject = formContext.getControl('WebResource_Tags').getObject();

    if (iframeObject == null)

           return;

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans