@plotly/webpack-dash-dynamic-import
Advanced tools
Comparing version
{ | ||
"name": "@plotly/webpack-dash-dynamic-import", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Webpack Plugin for Dynamic Import in Dash", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -23,3 +23,11 @@ const fs = require('fs'); | ||
/* Do not take into account async scripts and inline scripts */ | ||
var scripts = Array.from(document.getElementsByTagName('script')).filter(function(s) { return !s.async && !s.text && !s.textContent; }); | ||
var doc_scripts = document.getElementsByTagName('script'); | ||
var scripts = []; | ||
for (var i = 0; i < doc_scripts.length; i++) { | ||
scripts.push(doc_scripts[i]); | ||
} | ||
scripts = scripts.filter(function(s) { return !s.async && !s.text && !s.textContent; }); | ||
script = scripts.slice(-1)[0]; | ||
@@ -26,0 +34,0 @@ } |
4035
3.99%70
7.69%