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

Announcements

News and Announcements icon
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,532

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.

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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;

  • rthompson Profile Picture
    1,532 on at

    Okay.

    Thanks.  I have been trying to fix this issue.

    I will use what you suggest.

  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 81

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 43 Super User 2026 Season 1

#3
sannavajjala87 Profile Picture

sannavajjala87 29

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans