WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/08/2015 08:51:39 PM (5 years ago)
Author:
ocean90
Message:

Customizer Theme Switcher: Lazy load theme screenshots.

props westonruter, ocean90.
fixes #31793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r32086 r32088  
    12491249            <# if ( data.theme.screenshot[0] ) { #>
    12501250                <div class="theme-screenshot">
    1251                     <img src="{{ data.theme.screenshot[0] }}" alt="" />
     1251                    <img data-src="{{ data.theme.screenshot[0] }}" alt="" />
    12521252                </div>
    12531253            <# } else { #>
Note: See TracChangeset for help on using the changeset viewer.