Skip to content

You are using a HTML5 DOCTYPE. For HTML5 script tags you can omit the type attribute when its value … #2235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ and require plotly.js using CommonJS as `var Plotly = require('plotly.js');` or
#### Use the plotly.js CDN hosted by Fastly
```html
<!-- Latest compiled and minified plotly.js JavaScript -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>

<!-- OR use a specific plotly.js release (e.g. version 1.5.0) -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>
<script src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>

<!-- OR an un-minified version is also available -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.js"></script>
```

and use the `Plotly` object in the window scope.
Expand Down Expand Up @@ -99,7 +99,7 @@ To learn more about the plotly.js module architecture, refer to our [modularizin
Important: the plotly.js code base contains some non-ascii characters. Therefore, please make sure to set the `charset` attribute to `"utf-8"` in the script tag that imports your plotly.js bundle. For example:

```html
<script type="text/javascript" src="my-plotly-bundle.js" charset="utf-8"></script>
<script src="my-plotly-bundle.js" charset="utf-8"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion devtools/image_viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<div id="plot-images"></div>
<pre id="plot-mock"></pre>

<script type="text/javascript" src="../../build/image_viewer-bundle.js"></script>
<script src="../../build/image_viewer-bundle.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions devtools/test_dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<!-- <script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src='../../dist/extras/typedarray.min.js'></scr"+"ipt>");</script>
<script>document.write("<scri"+"pt src='../../dist/extras/request_animation_frame.js'></scr"+"ipt>");</script> -->

<script type="text/javascript" src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
<script id="source" type="text/javascript" src="../../build/plotly.js"></script>
<script type="text/javascript" src="../../build/test_dashboard-bundle.js"></script>
<script src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
<script id="source" src="../../build/plotly.js"></script>
<script src="../../build/test_dashboard-bundle.js"></script>
</body>
</html>
10 changes: 5 additions & 5 deletions tasks/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ function getInfoContent() {
'Import plotly.js as:',
'',
'```html',
'<script type="text/javascript" src="plotly.min.js"></script>',
'<script src="plotly.min.js"></script>',
'```',
'',
'or the un-minified version as:',
'',
'```html',
'<script type="text/javascript" src="plotly.js" charset="utf-8"></script>',
'<script src="plotly.js" charset="utf-8"></script>',
'```',
'',
'### To support IE9',
Expand All @@ -74,7 +74,7 @@ function getInfoContent() {
'*Before* the plotly.js script tag, add:',
'',
'```html',
'<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>',
'<script src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>',
'```',
'',
'You can grab the relevant MathJax files in `./dist/extras/mathjax/`.',
Expand All @@ -90,8 +90,8 @@ function getInfoContent() {
'*After* the plotly.js script tag, add:',
'',
'```html',
'<script type="text/javascript" src="plotly-locale-de-ch.js"></script>',
'<script type="text/javascript">Plotly.setPlotConfig({locale: \'de-CH\'})</script>',
'<script src="plotly-locale-de-ch.js"></script>',
'<script>Plotly.setPlotConfig({locale: \'de-CH\'})</script>',
'```',
'',
'The first line loads and registers the locale definition with plotly.js, the second sets it as the default for all Plotly plots.',
Expand Down
8 changes: 4 additions & 4 deletions test/image/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html>
<body>
<!-- this index file gets copied in to the image server docker -->
<script type="text/javascript" src="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
<script type="text/javascript" src="../plotly.js/build/plotly.js" charset="utf-8"></script>
<script type="text/javascript" src="../plotly.js/dist/plotly-geo-assets.js" charset="utf-8"></script>
<script type="text/javascript" src="./main.js"></script>
<script src="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
<script src="../plotly.js/build/plotly.js" charset="utf-8"></script>
<script src="../plotly.js/dist/plotly-geo-assets.js" charset="utf-8"></script>
<script src="./main.js"></script>
</body>
</html>