Solved! Go to Solution.
Hey Rasmus,
I'd suggest using the whenReady callback instead, as it waits until the form is completely done loading likie this:
MktoForms2.whenReady( function(form){
$('#mktoForms2BaseStyle').remove();
$('#mktoForms2ThemeStyle').remove();
});