From 9f35bfbd69455bacfbfe9f04a21fd2d590d7a25f Mon Sep 17 00:00:00 2001 From: torkel104 Date: Sun, 6 Nov 2016 20:31:01 +0100 Subject: [PATCH] Fix for class 'is-loading' The class 'is-loading' was not properly removed from the body tag, disabling animations on the page. --- bl-themes/log/assets/js/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bl-themes/log/assets/js/main.js b/bl-themes/log/assets/js/main.js index 1cde899f..9169087f 100644 --- a/bl-themes/log/assets/js/main.js +++ b/bl-themes/log/assets/js/main.js @@ -4,6 +4,12 @@ Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ +$( window ).on( 'load', function() { + setTimeout( function() { + $('body').removeClass('is-loading'); + }) +}); + (function($) { skel.breakpoints({ @@ -25,12 +31,6 @@ // Disable animations/transitions until the page has loaded. $body.addClass('is-loading'); - $window.on('load', function() { - window.setTimeout(function() { - $body.removeClass('is-loading'); - }, 100); - }); - // Fix: Placeholder polyfill. $('form').placeholder();