DEV Community

Discussion on: 𝗛𝗼𝘄 𝘁𝗼 𝗳𝗶𝗻𝗱 "UNUSED' 𝗝𝗔𝗩𝗔𝗦𝗖𝗥𝗜𝗣𝗧 𝗮𝗻𝗱 𝗖𝗦𝗦 𝗰𝗼𝗱𝗲 𝗼𝗻 𝘆𝗼𝘂𝗿 𝗽𝗮𝗴𝗲? 🤔

Collapse
 
varunprashar5 profile image
varunprashar5

but its only for unused imports ..what about the same file where few methods are there even they are called based on events but on your page load they are not required to be there?
What if there is a style tag with some css and only few css is used and rest is just there present in the file as it is?