mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Remove type="text/javascript" from script tags.
"text/javascript" is not a correct MIME type (the correct one is "application/javascript") but it's not even needed; all browsers default to the correct type and treat it as executable JS when type is ommited. Since not all browsers recognize the "application/javascript" MIME type the only way to both stay compliant and to support all popular browsers is to omit the type. It's also shorter this way.
This commit is contained in:
parent
40ba989592
commit
e625af3fef
13 changed files with 170 additions and 170 deletions
|
@ -4,24 +4,24 @@
|
|||
<head>
|
||||
<!-- In production, only one script (pdf.js) is necessary -->
|
||||
<!-- In production, change the content of PDFJS.workerSrc below -->
|
||||
<script type="text/javascript" src="../../src/shared/util.js"></script>
|
||||
<script type="text/javascript" src="../../src/shared/colorspace.js"></script>
|
||||
<script type="text/javascript" src="../../src/shared/function.js"></script>
|
||||
<script type="text/javascript" src="../../src/shared/annotation.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/api.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/metadata.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/canvas.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/webgl.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/pattern_helper.js"></script>
|
||||
<script type="text/javascript" src="../../src/display/font_loader.js"></script>
|
||||
<script src="../../src/shared/util.js"></script>
|
||||
<script src="../../src/shared/colorspace.js"></script>
|
||||
<script src="../../src/shared/function.js"></script>
|
||||
<script src="../../src/shared/annotation.js"></script>
|
||||
<script src="../../src/display/api.js"></script>
|
||||
<script src="../../src/display/metadata.js"></script>
|
||||
<script src="../../src/display/canvas.js"></script>
|
||||
<script src="../../src/display/webgl.js"></script>
|
||||
<script src="../../src/display/pattern_helper.js"></script>
|
||||
<script src="../../src/display/font_loader.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script>
|
||||
// Specify the main script used to create a new PDF.JS web worker.
|
||||
// In production, leave this undefined or change it to point to the
|
||||
// combined `pdf.worker.js` file.
|
||||
PDFJS.workerSrc = '../../src/worker_loader.js';
|
||||
</script>
|
||||
<script type="text/javascript" src="hello.js"></script>
|
||||
<script src="hello.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue