old_contents: '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));
  
  });
  
new_contents: '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();
  
  
      function resizeHandler(){
          windowWidth = window.outerWidth;
          windowHeight = $(window).height();
      }
  
      function loadHandler(){
  
      }
  
  
      // isMobile.any ? body.addClass('is-mobile') : body.addClass('is-desktop');
  
      // Since script is loaded asynchronously, load event isn't always fired !!!
      document.readyState === 'complete' ? loadHandler() : $(window).on('load', loadHandler);
  
      $(window).on('resize', throttle(function(){
          requestAnimFrame(resizeHandler);
      }, 60));
  
      $(document).on('scroll', throttle(function(){
  
      }, 60));
  
  });
  
subject: load event