Deferred JS breaks popup crousel accordion

Hi, may I know why is that if we enable Deferred JS in WP-Rocket or Flying Press it breaks Elementor’s Popups, Carousel, Accordion and some other Elements even if they are well below in page, can’t they optimize in a sense that when Js loads on interaction or in the end of page load it should load these elements correctly, or if you can guide me which files to exclude if these elements are breaking.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer