});
frame = $('<iframe id="wp-auth-check-frame" frameborder="0">').attr( 'title', noframe.text() );
- frame.load( function() {
+ frame.on( 'load', function() {
var height, body;
loaded = true;
+ // Remove the spinner to avoid unnecessary CPU/GPU usage.
+ form.removeClass( 'loading' );
try {
body = $(this).contents().find('body');
}
}).attr( 'src', form.data('src') );
- $('#wp-auth-check-form').append( frame );
+ form.append( frame );
}
$( 'body' ).addClass( 'modal-open' );