DEV Community

Discussion on: Lazy loading images with vanilla JavaScript

Collapse
 
sohammondal profile image
Soham Mondal

I have a question - say, the functionality of a button click relies on an external JS. But until the JS loads fully, the click will fail. How to handle this situation? Is there a way to disable the button until the JS loads?