diff options
author | Sondre Nilsen <nilsen.sondre@gmail.com> | 2017-05-31 03:05:49 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-05-31 09:05:49 +0800 |
commit | 24859fe5b64925f93f5b2decee28d3bba23a5b44 (patch) | |
tree | 56555608ffc893e61482d4a11e22c86ea9b01b3a /public/assets | |
parent | 642f844735f50fbc531dc01a0a89d004b9ecd042 (diff) | |
download | gitea-24859fe5b64925f93f5b2decee28d3bba23a5b44.tar.gz gitea-24859fe5b64925f93f5b2decee28d3bba23a5b44.zip |
Fix FOUC on Firefox (#1728)
Firefox users will experience a flash of unstyled content on loading
various pages, this patch will fix this issue using Filament Groups
loadCSS library to asynchronously load the CSS responsible for the FOUC.
Will fix #1698.
Signed-off-by: Sondre Nilsen <nilsen.sondre@gmail.com>
Diffstat (limited to 'public/assets')
-rw-r--r-- | public/assets/librejs/librejs.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/librejs/librejs.html b/public/assets/librejs/librejs.html index 59991e8ac2..57d4769184 100644 --- a/public/assets/librejs/librejs.html +++ b/public/assets/librejs/librejs.html @@ -36,6 +36,15 @@ <td><a href="https://github.com/Ranks/emojify.js/archive/1.1.0.tar.gz">emojify-1.1.0.tar.gz</a></td> </tr> <tr> + <td><a href="/js/libs/loadCSS.min.js">loadCSS.min.js</a></td> + <td><a href="https://opensource.org/licenses/MIT">MIT License</a></td> + <td><a href="https://github.com/filamentgroup/loadCSS/archive/v1.3.1.tar.gz">loadCSS-1.3.1.tar.gz</a></td> + </tr> + <tr> + <td><a href="/js/libs/cssrelpreload.min.js">cssrelpreload.min.js</a></td> + <td><a href="https://opensource.org/licenses/MIT">MIT License</a></td> + <td><a href="https://github.com/filamentgroup/loadCSS/archive/v1.3.1.tar.gz">loadCSS-1.3.1.tar.gz</a></td> + </tr> <td><a href="/plugins/dropzone-4.2.0/dropzone.js">dropzone.js</a></td> <td><a href="http://www.freebsd.org/copyright/freebsd-license.html">Expat</a></td> <td><a href="/plugins/dropzone-4.2.0/dropzone.js">dropzone.js</a></td> |