(function(callback) {
var d = document;
var script = document.createElement("SCRIPT");
script.src = '//code.jquery.com/jquery-1.12.4.min.js';
script.integrity = 'sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=';
script.crossorigin = 'anonymous';
script.type = 'text/javascript';
script.onload = callback();
document.getElementsByTagName("head")[0].appendChild(script);
})(function(){
console.log('Loaded');
});
More than 5 years have passed since last update.
Developerツールで使えるjQueryを動的に読み込むJavaScript
Posted at
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme