Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test cases for asynchronous css loading

NotificationsYou must be signed in to change notification settings

zachleat/async-css-loading

Repository files navigation

Current state of the art isfilamentgroup/loadCSS. Every other individual test below has major limitations in at least one modern browser.

Default (always blocks)

Link in<body>

  • <link> in middle of<body>
  • <link> at the end of<body>

Related Chromium issue:#481122 Allow the page to render before<link> tags in body

Attribute toggle using JavaScript

JavaScript created<link>

For browsers obeying the HTML5 specification, these should not block render.

  • document.createElement("link") in<body>
  • document.createElement("link") in<head>

Related WebKit issue:#88869 renderer should not block on script-inserted stylesheets

Extra

Dependencies

Uses a styles.php to add asleep() call to the stylesheet so that it loads slower.

Prior Art

About

Test cases for asynchronous css loading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp