Changeset 2237134
- Timestamp:
- 02/02/2020 08:33:46 AM (6 years ago)
- Location:
- loader/trunk
- Files:
-
- 3 edited
-
inc/preloader/functions.php (modified) (1 diff)
-
loader.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
loader/trunk/inc/preloader/functions.php
r2214142 r2237134 45 45 function loader_script() { 46 46 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 } 50 58 51 59 -
loader/trunk/loader.php
r2232979 r2237134 4 4 * Plugin URI: https://wordpress.org/plugins/loader 5 5 * Description: Loader is a lightweight plugin to show preloader and preload pages on mouse hover to load pages faster. 6 * Version: 1. 1.16 * Version: 1.2.0 7 7 * Author: BroadBrander 8 8 * Author URI: https://broadbrander.com … … 25 25 load_plugin_textdomain( 'loader' ); 26 26 27 27 28 /** 29 * Disable Loader on amp pages 30 * 31 * @package Loader 32 * @since 1.1.1 33 */ 34 28 35 function loader_disable() 29 36 { … … 31 38 } 32 39 33 if ( function_exists( 'is_amp_endpoint' ) ) { 40 // Check if amp page 41 if ( function_exists( 'is_amp_endpoint' ) ) { 34 42 35 add_action('wp_head', 'loader_disable');43 add_action('wp_head', 'loader_disable'); 36 44 37 }45 } 38 46 39 47 -
loader/trunk/readme.txt
r2232979 r2237134 1 1 === Loader: Preloader and User Experience Booster === 2 2 Contributors: broadbrander 3 Version: 1. 0.03 Version: 1.2.0 4 4 Plugin Name: Loader: Preloader and User Experience Booster 5 5 Tags: wordpress, preloader, preload, prefetch, speed optimize 6 6 Requires at least: 4.9 7 7 Tested up to: 5.3.1 8 Stable tag: 1. 0.08 Stable tag: 1.2.0 9 9 Requires PHP: 5.2.4 10 10 License: GPLv2 or later … … 56 56 = 1.1.0 = 57 57 58 * Fixed: Minor Bug 59 60 = 1.1.1 = 61 58 62 * Fixed: Disabled preloader on AMP pages 59 63 60 = 1. 1.0 =64 = 1.2.0 = 61 65 62 * Fixed: Minor Bug66 * Added: Compatibility with Elementor
Note: See TracChangeset
for help on using the changeset viewer.