we used to load our javascript after the CMS (Javascript) modified the DOM. This way we could preserve frontend editing and custom javascript stuff like sliders or accordions. In the latest version of ...