We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<link rel="preload" href="..." as="...">
The text was updated successfully, but these errors were encountered:
<link rel="preload" href="style.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
先読みが完了すると onload が発火する。 onload の中で rel を stylesheet に変更することで先読みしたCSSを適用している。 this.onload=null; がないとなぜか rel を切り替えるタイミングで再度読み込みが走ってしまう。(Chromeでのみ確認、SafariとFirefoxでは正常に動作する)
onload
rel
stylesheet
this.onload=null;
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: