I have seen many plugins that allow to integrate modal windows in our webs, which contain a lot of javascript code.
On the w3school page they have a modal type made with little javascript code, using GetElementById
, which is part of javascript.
My question is is it better to use the second option? for the matter of not overloading the site or is the first option better, why?
When I say overload I mean a lot of code. Are there any advantages, which?