Created
March 10, 2025 20:32
-
-
Save anubhavsrivastava/5c44e0207d1d769b4c9318fc1112871b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const resources = performance.getEntriesByType("resource").map(r => ({ | |
type: r.initiatorType, | |
url: r.name, | |
})); | |
console.table(resources); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for explicit CSS resources
[...document.styleSheets].map(sheet => sheet.href).filter(Boolean);