mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-12 08:41:31 -05:00
8f2697b7f1
This should allow us to define and update our dependencies more easily (via npm) as well as reducing the number of requests. Additionally, when we add common packages this will avoid the issue after deploys where a user may get a cached HTML page, but new Javascript, leading to the dreaded blank page because the browser didn't download all dependencies. Using mangle with UglifyJS also made the total file size for the common chunk bundle smaller than the current total for all of our external/polyfill scripts (1.18MB vs 1.55MB).
6 lines
479 B
JavaScript
6 lines
479 B
JavaScript
/*!
|
|
* https://github.com/krambuhl/custom-event-polyfill
|
|
* @license The MIT License (MIT) Copyright (c) 2014 Evan Krambuhl
|
|
* see https://github.com/krambuhl/custom-event-polyfill/blob/master/LICENSE
|
|
*/
|
|
(function(){try{new e("test")}catch(t){var e=function(t,e){var n;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e}})();
|