Use performance.getEntries()
to get a list of network files:
performance.getEntries();
To filter files by the .js
extension:
performance
.getEntries()
.map((entry) => entry.name)
.filter((url) => url.includes('.js'));
To filter files by the .css
extension:
performance
.getEntries()
.map((entry) => entry.name)
.filter((url) => url.includes('.css'));