mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Move 3rd party js/css into public/vendor and document sources (#2383)
This commit cherry picks the following commits (master -> v1.2):a915a09874f9be233bbcfRef: https://github.com/go-gitea/gitea/issues/1484 Signed-off-by: Michael Lustfield <michael@lustfield.net>
This commit is contained in:
committed by
Lunny Xiao
parent
e13eef8cfe
commit
9df0eafa25
@@ -0,0 +1,2 @@
|
||||
/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */
|
||||
!function(a){if(a.loadCSS){var b=loadCSS.relpreload={};if(b.support=function(){try{return a.document.createElement("link").relList.supports("preload")}catch(b){return!1}},b.poly=function(){for(var b=a.document.getElementsByTagName("link"),c=0;c<b.length;c++){var d=b[c];"preload"===d.rel&&"style"===d.getAttribute("as")&&(a.loadCSS(d.href,d,d.getAttribute("media")),d.rel=null)}},!b.support()){b.poly();var c=a.setInterval(b.poly,300);a.addEventListener&&a.addEventListener("load",function(){b.poly(),a.clearInterval(c)}),a.attachEvent&&a.attachEvent("onload",function(){a.clearInterval(c)})}}}(this);
|
||||
Reference in New Issue
Block a user