[wp-trac] [WordPress Trac] #31793: Theme Switcher: Lazy load theme screenshots

WordPress Trac noreply at wordpress.org
Mon Apr 13 23:10:03 UTC 2015

#31793: Theme Switcher: Lazy load theme screenshots
 Reporter:  ocean90       |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  4.2
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  needs-patch   |     Focuses:  javascript

Comment (by azaozz):

 @ocean90, looking at [32088], maybe better to use:
 source = $screenshot.attr( 'data-src' );
 instead of
 source = $screenshot.data( 'src' );

 That will get the actual attribute from the element instead of relying on
 the jQuery caching.

Ticket URL: <https://core.trac.wordpress.org/ticket/31793#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list