Closed yaniv691 closed 8 years ago
Hi,
My page has a lot of modals, causing the page to load slowly because all the modals are add to the DOM.
Is there a way to add the modal to the DOM only when opened, and remove it from the DOM when closed?
Thanks, Yaniv
Use events, use JS initialization or use a single modal and replace the inner content.
Hi,
My page has a lot of modals, causing the page to load slowly because all the modals are add to the DOM.
Is there a way to add the modal to the DOM only when opened, and remove it from the DOM when closed?
Thanks, Yaniv