Changeset 2265313
- Timestamp:
- 03/22/2020 08:52:35 AM (6 years ago)
- Location:
- loader/trunk
- Files:
-
- 4 edited
-
inc/customizer.php (modified) (1 diff)
-
inc/preloader/functions.php (modified) (8 diffs)
-
loader.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
loader/trunk/inc/customizer.php
r2262313 r2265313 108 108 'jpg|jpeg|jpe' => 'image/jpeg', 109 109 'gif' => 'image/gif', 110 'png' => 'image/png' 110 'png' => 'image/png', 111 'svg' => 'image/svg+xml' 111 112 ); 112 113 $file_ext = wp_check_filetype( $file, $formats ); -
loader/trunk/inc/preloader/functions.php
r2262313 r2265313 46 46 echo' 47 47 <script> 48 if(self==top){jQuery(document).ready(function(d){d(window). load(function(){d("#bbpreloading").addClass("hidepreloader")})});}48 if(self==top){jQuery(document).ready(function(d){d(window).on("load",function(){d("#bbpreloading").addClass("hidepreloader")})});} 49 49 else{ 50 50 jQuery(document).ready(function(l){l(window).ready(function(){ … … 73 73 <script> 74 74 if ( window.location.href == "'. $home_url . '/" ){ 75 jQuery(document).ready(function(d){d(window). load(function(){d("#bbpreloading").addClass("hidepreloader")})});75 jQuery(document).ready(function(d){d(window).on("load" , function(){d("#bbpreloading").addClass("hidepreloader")})}); 76 76 } 77 77 … … 214 214 if ( get_theme_mod('loader_style_select' , 1) == 1) { 215 215 216 // Check if the wp_body_open is available 217 if(has_action('wp_body_open')) { 216 218 217 219 // If avaibale add html after body tag 218 220 add_action('wp_body_open', 'loader_html'); 219 221 222 } else { 223 224 // Else add html to head 225 add_action('wp_head', 'loader_html'); 226 } 220 227 } 221 228 … … 223 230 if ( get_theme_mod('loader_style_select') == 2) { 224 231 232 // Check if the wp_body_open is available 233 if(has_action('wp_body_open')) { 225 234 226 235 // If avaibale add html after body tag 227 236 add_action('wp_body_open', 'loader_html'); 228 237 238 } else { 239 240 // Else add html to head 241 add_action('wp_head', 'loader_html'); 242 } 229 243 } 230 244 … … 232 246 if ( get_theme_mod('loader_style_select') == 3) { 233 247 248 // Check if the wp_body_open is available 249 if(has_action('wp_body_open')) { 250 234 251 // If avaibale add html after body tag 235 252 add_action('wp_body_open', 'loader_3_html'); 236 253 254 } else { 255 256 // Else add html to head 257 add_action('wp_head', 'loader_3_html'); 258 } 237 259 } 238 260 … … 240 262 if ( get_theme_mod('loader_style_select') == 4) { 241 263 264 // Check if the wp_body_open is available 265 if(has_action('wp_body_open')) { 266 242 267 // If avaibale add html after body tag 243 268 add_action('wp_body_open', 'loader_4_html'); 244 269 270 } else { 271 272 // Else add html to head 273 add_action('wp_head', 'loader_4_html'); 274 } 245 275 } 246 276 … … 248 278 if ( get_theme_mod('loader_style_select') == 5) { 249 279 280 // Check if the wp_body_open is available 281 if(has_action('wp_body_open')) { 282 250 283 // If avaibale add html after body tag 251 284 add_action('wp_body_open', 'loader_html'); 252 285 286 } else { 287 288 // Else add html to head 289 add_action('wp_head', 'loader_html'); 290 } 253 291 } 254 292 255 293 if ( get_theme_mod('loader_style_select') == 6) { 256 294 295 // Check if the wp_body_open is available 296 if(has_action('wp_body_open')) { 297 257 298 // If avaibale add html after body tag 258 299 add_action('wp_body_open', 'loader_6_html'); 259 300 301 } else { 302 303 // Else add html to head 304 add_action('wp_head', 'loader_6_html'); 305 } 260 306 } 261 307 … … 263 309 if ( get_theme_mod('loader_style_select') == 'image') { 264 310 311 // Check if the wp_body_open is available 312 if(has_action('wp_body_open')) { 313 265 314 // If avaibale add html after body tag 266 315 add_action('wp_body_open', 'loader_image_html'); 316 317 } else { 318 319 // Else add html to head 320 add_action('wp_head', 'loader_image_html'); 321 } 267 322 } 268 323 269 324 if ( get_theme_mod('loader_style_select') == 'custom') { 270 325 326 // Check if the wp_body_open is available 327 if(has_action('wp_body_open')) { 328 271 329 // If avaibale add html after body tag 272 330 add_action('wp_body_open', 'loader_custom_html'); 273 } 274 275 } 276 331 332 } else { 333 334 // Else add html to head 335 add_action('wp_head', 'loader_custom_html'); 336 } 337 } 338 } -
loader/trunk/loader.php
r2262313 r2265313 4 4 * Plugin URI: https://wordpress.org/plugins/loader 5 5 * Description: Loader is a lightweight plugin to show preloader and prefetch on mouse hover to load pages faster. 6 * Version: 1.2. 36 * Version: 1.2.4 7 7 * Author: BroadBrander 8 8 * Author URI: https://broadbrander.com -
loader/trunk/readme.txt
r2262313 r2265313 1 1 === Loader: Preloader and User Experience Booster === 2 2 Contributors: broadbrander 3 Version: 1.2. 33 Version: 1.2.4 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.4.0 8 Stable tag: 1.2. 38 Stable tag: 1.2.4 9 9 Requires PHP: 5.2.4 10 10 License: GPLv2 or later … … 85 85 * Tweak: Increased maximum value of preloader size to 400 pixels. 86 86 * Fixed: Minor bug. 87 88 = 1.2.3 = 89 90 * Fixed: Preloader not showing on some websites. 91 * Added: SVG support. 92 * Updated: Deprecated jQuery code.
Note: See TracChangeset
for help on using the changeset viewer.