Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

JS Web Resources Not Loading in IE

  • 1.  JS Web Resources Not Loading in IE

    TOP CONTRIBUTOR
    Posted 20 days ago
    What would cause a JS Web Resource to not load in IE?

    I'm updating our JS for transition to the UCI. While we previously had a single script for each entity, which contained copies of shared functions. I've created a shared JS resource file to contain any shared scripts and form now references three web resources; the shared, a form-specific resource, and the old scripts which are being replaced.

    These resources all work fine in Chrome, accross multiple entities, fields, etc.  IE however, is throwing errors. Only one of the two new scripts appears to be loading in the IE Dev Tools (F12). The shared script simply isn't there. I've deleted browser history / cache, and still nothing. I've checked the code for errors. Neither Visual Studio, nor JSLint.com are flagging anything.

    What would prevent a JS Web Resource from loading in IE?

    ------------------------------
    Ryan Perry
    Business Systems Analyst
    Auric Solar
    ------------------------------
    Conference-CRMUG_200x200


  • 2.  RE: JS Web Resources Not Loading in IE

    SILVER CONTRIBUTOR
    Posted 20 days ago
    Hey Ryan,

    What version of IE are experiencing this issue with? I have seen issues in IE with syntax in the past. Does it work in Edge?

    ------------------------------
    Doug Apicella
    Solution Architect
    Hitachi Solutions America, Ltd.
    Greenville SC
    ------------------------------

    Conference-CRMUG_200x200


  • 3.  RE: JS Web Resources Not Loading in IE

    TOP CONTRIBUTOR
    Posted 20 days ago
    Edited by Rex Kenley Tan 20 days ago
    @Ryan Perry

    Any chance that there are errors before that script is "loaded"? You can compare the network traffic between browsers to determine where it is "supposed" to load.

    I would suggest that you compile your 3 scripts into one to avoid issues like this. Please take a look at my github on how to do that
    https://github.com/rexkenley/CrmUG2019

    This project is configured to work with all major browsers so you don't have to worry about specific browser "quirks" anymore.

    Cheers!

    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------

    Conference-CRMUG_200x200


  • 4.  RE: JS Web Resources Not Loading in IE

    TOP CONTRIBUTOR
    Posted 18 days ago
    I thought maybe you might be interested.
    https://github.com/rexkenley/d365js

    ------------------------------
    Rex Kenley Tan, MCSA, MCSD
    Tallmadge OH
    https://www.youracclaim.com/users/rex-kenley-tan

    *Always be CURRENT with JavaScript & C#, NEVER be obsolete.

    DISCLAIMER: All views expressed on this site are my own and DO NOT represent the opinions of ANY entity whatsoever with which I have been, am now, or will be affiliated.
    ------------------------------

    Conference-CRMUG_200x200


If you've found this thread useful, dive deeper into User Group community content by role