I wonder whether it\'s possible to change stylesheet link of the loaded document, then wait till the new css is loaded, and then run appropriate js code
thanks for a
html:
code:
$("#mystylesheet").load(function(){ //Your javascript }).attr("href", "/new/path/to/css.css");
This will replace your current CSS, and execute any code within the .load() handler after the new CSS file has been fetched.
.load()