Plugin Directory

Changeset 2237134


Ignore:
Timestamp:
02/02/2020 08:33:46 AM (6 years ago)
Author:
broadbrander
Message:

Added: Compatibility with Elementor

Location:
loader/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • loader/trunk/inc/preloader/functions.php

    r2214142 r2237134  
    4545function loader_script() {
    4646 echo'
    47  <script>jQuery(document).ready(function(d){d(window).load(function(){d("#bbpreloading").addClass("hidepreloader")})});</script>';
    48 }
    49 
     47 <script>
     48 if(self==top){jQuery(document).ready(function(d){d(window).load(function(){d("#bbpreloading").addClass("hidepreloader")})});}
     49 else{
     50 jQuery(document).ready(function(l){l(window).ready(function(){
     51  setInterval(function(){
     52    l("#bbpreloading").addClass("hidepreloader")
     53  }, 2000);
     54});});
     55}
     56</script>';
     57}
    5058
    5159
  • loader/trunk/loader.php

    r2232979 r2237134  
    44 * Plugin URI: https://wordpress.org/plugins/loader
    55 * Description: Loader is a lightweight plugin to show preloader and preload pages on mouse hover to load pages faster.
    6  * Version: 1.1.1
     6 * Version: 1.2.0
    77 * Author: BroadBrander
    88 * Author URI: https://broadbrander.com
     
    2525    load_plugin_textdomain( 'loader' );
    2626
    27  
     27   
     28    /**
     29    * Disable Loader on amp pages
     30    *
     31    * @package Loader
     32    * @since 1.1.1
     33    */
     34
    2835    function loader_disable()
    2936    {
     
    3138    }
    3239
    33 if ( function_exists( 'is_amp_endpoint' ) ) {
     40    // Check if amp page
     41    if ( function_exists( 'is_amp_endpoint' ) ) {
    3442
    35     add_action('wp_head', 'loader_disable');
     43        add_action('wp_head', 'loader_disable');
    3644
    37 }
     45    }
    3846
    3947
  • loader/trunk/readme.txt

    r2232979 r2237134  
    11=== Loader: Preloader and User Experience Booster ===
    22Contributors: broadbrander
    3 Version: 1.0.0
     3Version: 1.2.0
    44Plugin Name: Loader: Preloader and User Experience Booster
    55Tags: wordpress, preloader, preload, prefetch, speed optimize
    66Requires at least: 4.9
    77Tested up to: 5.3.1
    8 Stable tag: 1.0.0
     8Stable tag: 1.2.0
    99Requires PHP: 5.2.4
    1010License: GPLv2 or later
     
    5656= 1.1.0 =
    5757
     58* Fixed: Minor Bug
     59
     60= 1.1.1 =
     61
    5862* Fixed: Disabled preloader on AMP pages
    5963
    60 = 1.1.0 =
     64= 1.2.0 =
    6165
    62 * Fixed: Minor Bug
     66* Added: Compatibility with Elementor
Note: See TracChangeset for help on using the changeset viewer.