').attr('href', 'static/css/deferred.css')); head.prepend($('').attr('href', 'static/css/shadowbox.css')); var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; }); $(function () { var path = window.location.pathname.split('/').pop(); if (path === '') path = 'index.html'; $('nav a[href="' + path + '"]').addClass('active'); Shadowbox.init(); });