'use strict';

var $ = require('jquery-slim');
<% if (greensock) { %>
// require('gsap');
require('gsap/CSSPlugin');
var TweenLite = require('gsap/TweenLite');
<% } %>

$(function(){

    window.requestAnimFrame = require('./requestAnimFrame.js');
    var throttle = require('./throttle.js');

    var body = $('body');
    // window.outerWidth returns the window width including the scroll, but it's not working with $(window).outerWidth
    var windowWidth = window.outerWidth, windowHeight = $(window).height();



    // isMobile.any ? body.addClass('is-mobile') : body.addClass('is-desktop');

    function resizeHandler(){
        windowWidth = window.outerWidth;
        windowHeight = $(window).height();
    }

    $(window).on('resize', throttle(function(){
        requestAnimFrame(resizeHandler);
    }, 60)).on('load', function(){

    });


    $(document).on('scroll', throttle(function(){

    }, 60));

});

@@ -514,90 +514,8 @@
 ;%0A%0A%0A
-%0A    // isMobile.any ? body.addClass('is-mobile') : body.addClass('is-desktop');%0A%0A
     
@@ -631,16 +631,307 @@
 %0A    %7D%0A%0A
+    function loadHandler()%7B%0A%0A    %7D%0A%0A%0A    // isMobile.any ? body.addClass('is-mobile') : body.addClass('is-desktop');%0A%0A    // Since script is loaded asynchronously, load event isn't always fired !!!%0A    document.readyState === 'complete' ? loadHandler() : $(window).on('load', loadHandler);%0A%0A
     $(wi
@@ -1026,41 +1026,9 @@
 60))
-.on('load', function()%7B%0A%0A    %7D);%0A
+;
 %0A%0A  

load event