Plugin Directory

Changeset 2149642


Ignore:
Timestamp:
09/02/2019 02:35:19 PM (7 years ago)
Author:
embedsocial
Message:

Enabled lazy loading for reviews

Location:
embedalbum-pro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • embedalbum-pro/trunk/embedalbum_pro.php

    r2092376 r2149642  
    66Author: EmbedSocial
    77Author URI: http://www.embedsocial.com
    8 Version: 1.1.18
     8Version: 1.1.19
    99 */
    1010defined( 'ABSPATH' ) or die;
     
    5959
    6060    public function hook_embed_reviews_js() {
    61         wp_register_script('EmbedSocialReviewsScript', $this->urlEmbedScripts.'ri.js');
    62         wp_enqueue_script('EmbedSocialReviewsScript', $this->urlEmbedScripts.'ri.js');
     61        wp_register_script('EmbedSocialReviewsScript', $this->urlEmbedScripts.'ri_min.js');
     62        wp_enqueue_script('EmbedSocialReviewsScript', $this->urlEmbedScripts.'ri_min.js');
    6363    }
    6464
     
    206206                $out .= " data-tags='{$shortcodeId['tags']}' ";
    207207            }
    208             if ($shortcodeId['lazyload'] && $shortcodeId['lazyload'] == 'yes') {
     208            if ($shortcodeId['lazyload'] && $shortcodeId['lazyload'] == 'no') {
     209                $out .= " data-lazyload='no' ";
     210            } else {
    209211                $out .= " data-lazyload='yes' ";
    210212            }
  • embedalbum-pro/trunk/readme.txt

    r2092376 r2149642  
    55Requires at least: 4.0
    66Tested up to: 5.0.1
    7 Stable tag: 1.1.18
     7Stable tag: 1.1.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.