bulmil
Version:

23 lines (17 loc) • 699 B
JavaScript
(function(doc){
var scriptElm = doc.scripts[doc.scripts.length - 1];
var warn = ['[bulmil] 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('bulmil');
var url = parts.join('/');
var scriptElm = doc.createElement('script');
scriptElm.setAttribute('type', 'module');
scriptElm.src = url + '/bulmil.esm.js';
warn.push(scriptElm.outerHTML);
scriptElm.setAttribute('data-stencil-namespace', 'bulmil');
doc.head.appendChild(scriptElm);
false
console.warn(warn.join('\n'));
})(document);