Streaming live at 10am (PST)

Load JS when div is shown


#1

Hi,

Im having this issue where i want to call a JS script to appear in a modal.

The problem is that my JS load is in the head and since it cant find the div active it doesnt show, and when i invoke the modal then the js doesnt load anymore.

So i want to be able to call the JS at the same time when the modal opens.

The work around for now is to set the block as initial appearance so it the js will load, and then it will be already loaded when its called again.

https://preview.webflow.com/preview/prague2015?preview=44615552dc5da5b11784e1b9749d36bf

How can i do to force the JS to load only after it has a place to go to?

Thanks for your help


#2

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.