Skip to content

Plotly library fails to load silently #5509

@danielfrunza

Description

@danielfrunza

Plotly javascript library fails to load silently if ArcGIS library is added before it. This issue is blocker for me because I can not use both of them in the same time...

Steps to reproduce on Chrome or Firefox on Windows10:

  1. Open any website that does not have already ArcGIS or Plotly loaded.(ex: google.com)
  2. Open Chrome developer tools
  3. Add FIRST ArcGIS in console drawer by copy/paste following lines:
var acrGISlib = document.createElement("script");
acrGISlib.setAttribute("type", "text/javascript");
acrGISlib.setAttribute("src", "https://js.arcgis.com/4.18/");
document.getElementsByTagName("head")[0].prepend(acrGISlib);
  1. Add the Plotly lib from CDN in console drawer by copy/paste following lines:
var plotlyLib = document.createElement("script");
plotlyLib.setAttribute("type", "text/javascript");
plotlyLib.setAttribute("src", "https://cdn.plot.ly/plotly-latest.min.js");
document.getElementsByTagName("head")[0].prepend(plotlyLib);
  1. Check if global variable 'Plotly' is available.
    Uncaught ReferenceError: Plotly is not defined

Note: If step 3 is skipped everything is working as expected. If step 4 is done before step 3 they will both work but this does not help me...

Plotly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions