I want the JavaScript resize event to be fired AFTER all the css changes (of a responsive Bootstrap layout) are completed. Is this possible?
Asked
Active
Viewed 153 times
0
-
2It seems that is not possible to detect when a CSS file is full loaded, just with some libraries. Take a look here: http://stackoverflow.com/questions/4488567/is-there-any-way-to-detect-when-a-css-file-has-been-fully-loaded – Francisco Romero Sep 05 '16 at 18:58
1 Answers
0
The window.onload
event is fired when the site, including the CSS files, is completly loaded.
![](../../users/profiles/6357725.webp)
jl005
- 98
- 2
- 7
-
1But it's only fired once when the page has been loaded. I'm looking for a way also layout modifications (like Bootstraps responsive changes after viewport resizes) are catched. – Mountain Sep 05 '16 at 20:01
-
It's a crappy solution, but if the layout modifications need a certain time to finish, you can call the JS-function with a delay: `setTimeout(myfunc, time)`. – jl005 Sep 05 '16 at 20:12
-
It works this way - little crappy as you said, but it works and I've no better solution right now. – Mountain Sep 07 '16 at 15:25