Try to make Firefox properly detect ready states