Merge pull request #20468 from ant-design/fix-site-dark-switch

feat: prefetch speed up dark.css load
This commit is contained in:
信鑫-King 2019-12-26 16:36:46 +08:00 committed by GitHub
commit a178810ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@
{% for cssFile in manifest["css"] %}
<link rel="stylesheet" type="text/css" href="{{ root }}{{ cssFile }}" />
{% endfor %}
<link rel="prefetch" type="text/css" href="/dark.css" />
<style id="nprogress-style">
#nprogress {
display: none;