javascript - Loading bootstrap modal content only after clicking -


I am using Bootstrap 3 and I have a busy page. The modal content is loading with the page, whether the user to click the button to open the modal or not. I want to save resources because this model material is really big and busy, and my goal is to load specific bootstrap model content only after clicking on the button to open this model.

How can I do this?

Thanks in advance.

Take a look at the doctor

There is a "Remote" option for which you can use it (Please note that "This option is Degraded since v3.3.0 and will be removed in v4.)

As suggested, you can use jQuery.load.

Move your content (modal content) into a separate file and load the content on that model, Click on the button.

workflow will do something

  button. Click function {open model load content to keep content in modal body}  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -