Ticket #31793: 31793.2.diff
File 31793.2.diff, 586 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/js/customize-controls.js
diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js index e35ec4f..483b5c8 100644
582 582 section.closeDetails(); 583 583 } 584 584 }); 585 586 // Pre-load the first 3 theme screenshots 587 api.bind( 'ready', function () { 588 _.each( section.controls().slice( 0, 3 ), function ( control ) { 589 var img, src = control.params.theme.screenshot[0]; 590 if ( src ) { 591 img = new Image(); 592 img.src = src; 593 } 594 }); 595 }); 585 596 }, 586 597 587 598 /**