What I am going to ask is a bit entangled. I am working with Awesomium .NET and stumbled across an issue with Bootstrap (see this issue report). Basically the problem is that somehow Bootstrap 'thinks' the window has a small width and does not react on resizes (aka is not responsive). I realized accidentally that bootstrap works correctly when I call $(document).ready()
on the dev console. So it seems I can use this as a workaround ans simply execute $(document).ready()
by myself again. My question is now whether this could have any unwanted side-effects. Are there better events I can trigger? (with or without jQuery).
Update:
I realized I can execute $(document).ready()
in the console but
var myFunc= function(){$(document).ready()};
muFunc();
has no effect. Also putting $(document).ready()
into setTimout
has no effect. Only execute the command directly on the dev console has the whished effect. So it seems the workaround is useless. Are there any further ideas?
I had the same problem as you. I don't know if it's going to help you, as I'm generating my own HTML. I removed the lang tag in the HTML element and voilá... it worked. I meant from this:
<html lang="en">
To this:
<html>
If you are loading an external page you could try doing something like
webbrowser.ExecuteJavascript("$(document).ready( $('html').removeAttr('lang'); );");
Hope it helps