Skip to main content

Notifications

Announcements

No record found.

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,613 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans