-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5db60b2
commit 4067cf9
Showing
197 changed files
with
44,299 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
(function(doc){ | ||
var scriptElm = doc.scripts[doc.scripts.length - 1]; | ||
var warn = ['[calcite] Deprecated script, please remove: ' + scriptElm.outerHTML]; | ||
|
||
warn.push('To improve performance it is recommended to set the differential scripts in the head as follows:') | ||
|
||
var parts = scriptElm.src.split('/'); | ||
parts.pop(); | ||
parts.push('calcite'); | ||
var url = parts.join('/'); | ||
|
||
var scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('type', 'module'); | ||
scriptElm.src = url + '/calcite.esm.js'; | ||
doc.head.appendChild(scriptElm); | ||
warn.push(scriptElm.outerHTML); | ||
|
||
scriptElm = doc.createElement('script'); | ||
scriptElm.setAttribute('nomodule', ''); | ||
scriptElm.src = url + '/calcite.js'; | ||
doc.head.appendChild(scriptElm); | ||
warn.push(scriptElm.outerHTML); | ||
|
||
console.warn(warn.join('\n')); | ||
|
||
})(document); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.