From: Alexander Ebert Date: Tue, 3 Nov 2020 12:27:00 +0000 (+0100) Subject: Bump the head.js timeout from 7s to 60s X-Git-Tag: 5.3.0~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5af570ef80965e6333564cdab7932929189e7df8;p=GitHub%2FWoltLab%2FWCF.git Bump the head.js timeout from 7s to 60s head.js will fire the ready event even when the script is still loading, causing the callback to be invoked on slow 3G networks before the script arrived. See https://github.com/headjs/headjs/issues/330 --- diff --git a/wcfsetup/install/files/js/WCF.Assets.js b/wcfsetup/install/files/js/WCF.Assets.js index f9262d2825..8291ac9210 100644 --- a/wcfsetup/install/files/js/WCF.Assets.js +++ b/wcfsetup/install/files/js/WCF.Assets.js @@ -7,7 +7,7 @@ (function(){var a=false,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(c){function g(){if(!a&&this.init)this.init.apply(this,arguments);}var d=this.prototype;a=true;var e=new this;a=false;for(var f in c){e[f]=typeof c[f]=="function"&&typeof d[f]=="function"&&b.test(c[f])?function(a,b){return function(){var c=this._super;this._super=d[a];var e=b.apply(this,arguments);this._super=c;return e;};}(f,c[f]):c[f]}g.prototype=e;g.prototype.constructor=g;g.extend=arguments.callee;return g;};})(); /*! head.load - v1.0.3 */ -(function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i