JS Loading Problem

By design Issue #11306760

Details

Author
Derrick H.
Created
Mar 17, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

For some reason the page fails to load the JS with no errors or notices to the developer to know what is wrong. I have reduced the JS down to a single alert call and got it to work as a random test.

Please see https://gist.github.com/pcfreak30/928b8e0035ddb8c324bb2aaedf407c91

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hi Derrick,

    The issue is with the usage of CDATA inside the header section’s <script> tag.  I believe it is safest and more portable to escape the script contents.  I attached a screenshot of Edge’s debugger console that shows the parsing error for this section.

    Here are two links as reference:

    https://www.w3.org/TR/xhtml-media-types/#C_4
    https://stackoverflow.com/questions/66837/when-is-a-cdata-section-necessary-within-a-script-tag

    Let us know if this doesn’t resolve the issue,

    The MS Edge Team

  • I forgot to mention I all attached a modified version of the html document with my suggestion.

    <script data-no-minify="1">

    //<![CDATA[
      (function(h){var d=function(d,e,n){
    … removed …
    //]]>
      </script>

  • Microsoft Edge Team

    Changed Status to “By design”

You need to sign in to your Microsoft account to add a comment.

Sign in