There is a site. Many connected JS and CSS files. There was a question about optimization. I wondered how to define and where one or another JS, CSS file is used. Tell me please, is this possible?

  • you need to disconnect everything, and connect and watch one by one what has changed - Grundy

1 answer 1

Write the console.log("some text"); code in the required file or / and in the necessary fragment console.log("some text"); .

If the text you wrote is displayed in the browser console, it means it is used, otherwise it does not.