We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d79fcd commit 080be73Copy full SHA for 080be73
pages/Loading/Script-Loading.mdx
@@ -8,15 +8,13 @@ List all the `<scripts>` in the DOM and show a table to see if are loaded `async
8
const scripts = document.querySelectorAll("script[src]");
9
10
const scriptsLoading = [...scripts].map((obj) => {
11
- let newObj = {};
12
- newObj = {
+ return {
13
src: obj.src,
14
async: obj.async,
15
defer: obj.defer,
16
module: obj.type === 'module',
17
"render blocking": obj.async || obj.defer || obj.type === 'module' ? "" : "🟥",
18
};
19
- return newObj;
20
});
21
22
console.table(scriptsLoading);
0 commit comments