0

I am preparing a website using bootstrap which uses a lots of modals with images. I am concerned about the performance. I want to know that when exactly the browser loads the modal.

  • With the page loads?
  • After the page loads?
  • On click/trigger event?
  • As per code flow?

Or something else?

Anyone please explain.

GeekWithGlasses
  • 542
  • 11
  • 25

1 Answers1

0

Yes, the modal is loaded when the page loads. However, bootstrap sets its css display property to none (Line 5876 in the bootstrap.css file). display: none means that the element won't be rendered until its display value changes.

What this means:
You should be fine, unless you plan on showing loads of modals at once. And by loads I mean thousands of them.

otoomey
  • 728
  • 11
  • 26