omise(函数(e, t) {var n = document.createElement(“链接”);n.rel =“预取”,n.href = i.href n.onload = e, n.onerror = t, document.head.appendChild (n)}) .catch(函数(){})}},{关键:“_prepareUrl”价值:函数(e){如果(null = = = e | |“对象”!= =(无效0 = = = e ?“定义”:r (e)) | | !1 in e||-1===["http:","https:"].indexOf(e.protocol))返回null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",值:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n. startswith ("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",值:function(e,t){var n=tthis.config.usesTrailingSlash&& ! e.endsWith(“/”)& & ! this.regex.fileExt.test (e)}},{关键:“_isLinkOk”价值:函数(e){返回null。= = e“对象”= = =(无效0 = = = e ?“定义”:r (e)) & & (! this.prefetched.has (e.href) &&e.origin = = = this.config.siteUrl&&-1 = = = e.href.indexOf(“?”)&&-1 = = = e.href.indexOf(“#”)& & ! this.regex.excludeUris.test (e.href) & & ! this.regex.images.test (e.href))}}],[{关键:“运行”,价值:函数(){“定义”!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();} ());