Produccion 1
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
script.setAttribute('data-rocket-src', src);
|
||||
script.removeAttribute('src');
|
||||
}
|
||||
// Keep ES modules as modules when they are released later (prevents
|
||||
// "Cannot use import statement outside a module" on runtime-injected scripts).
|
||||
if ((script.getAttribute('type') || '').toLowerCase() === 'module') script.setAttribute('data-rocket-type', 'module');
|
||||
script.setAttribute('type', 'rocketlazyloadscript');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user