twitter bootstrap - When is the DOM fully rendered after a window.resize event and how can I hook into that event? -


I am using Bootstrap 3.2 and its media query strategy lets it rewrite the DOM for various viewport sizes ( In bootstrap, these are for LG, MD, SM, and X, large, medium, small and extra small scenes) but when I use bootstrap or not, I need to make sure that my javascript code runs Initiatives DOM has been fully reproduced after the size of a browser-window size.

Currently, I have a JavaScript function that results from a windows.resize event:

  $ (window). Resize (function () {activateControls ();});  

But this phenomenon is sometimes caught by a fire before the DOM is completely re-presented (It seems that bootstrap is re-unlimited with my own JS code. Shaped phenomenon - and it's not going to work - I need my code so that the DOM is fully reproduced in response to a full size after the bootstrap).

Is there a callback event that I can wire-up so that the DOM is fully updated with the browser-resize operation?

Thank you.

Unless someone is on the contrary, I think the answer uses the same logic bootstrap Use the ink used - that is, use the media queries in CSS, instead of waiting for the bootstrap so that the dome can be fully presented after the re-size incident. Instead of waiting for the bootstrap, my special-case styling will convert the fire into a viewport-size using media quotes.

I can post another question because I still think it may be useful to have a kind of $ (document) .ready () function that will be followed by a postback, After the fire. If someone knows something like this, please tell me.

Thank you.


Comments