Skip to content

Commit

Permalink
Merge pull request ant-design#20468 from ant-design/fix-site-dark-switch
Browse files Browse the repository at this point in the history
feat: prefetch speed up dark.css load
  • Loading branch information
ycjcl868 authored Dec 26, 2019
2 parents 81c71a4 + 0c272cb commit a178810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/theme/static/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a178810

Please sign in to comment.