Menu icon Foundation
Reveal Modal Load Content On Button Click

I'm using Foundation on a rather large website. I have a case were I have several reveal modals on one page. Unfortunately, it loads all modals on page load. Is it possible to change it so it only loads the modal content when the modal is triggered/revealed?

reveal modal

I'm using Foundation on a rather large website. I have a case were I have several reveal modals on one page. Unfortunately, it loads all modals on page load. Is it possible to change it so it only loads the modal content when the modal is triggered/revealed?

Rafi Benkual almost 5 years ago

You can use something like lazy load to load them when needed http://www.appelsiini.net/projects/lazyload