Watch for DOM elements creation and removal
nodejs
javascript
jquery
detect
dom
dynamic
watch
listen
mutationobserver
insertion
removal
mutation-observer
livequery
mutation-observers
-
Updated
Jun 20, 2020 - JavaScript
Description
When developing on a responsive website there are some elements that has to be cloned and used doubled - for example a navigation for the burger-style-menu on mobile and the mega-menu on a large screen.
Instead of loading both at once, what, if it would be possible to load a module only when a certain viewport width/height is valid, like: