DEV Community


Discussion on: DOM elements with ID's are global variables

babailiica profile image
100 кила minion 🌈

This is old as hell... also this is the reason why you should not define an ID for styling instead of a class for elements which you will never reffrrence. Using more unnecessary IDs spends more RAM and makes your source less optimised and less performant.