I tried this solution:
What is the cleanest way to disable CSS transition effects temporarily?
but it doesn't work. I still see stuff animating.
$('body').addClass('notransition'); // the class that doesn't work
$('body')[0].offsetHeight;
$('#main_style').attr('href', newStyleUrl);
$('body').removeClass('notransition');
Is there any way to make it work?