Re: [csswg-drafts] preloading a CSS image

Thanks for the reply. @inoas

To further break down image loading priorities, images with `load` priority can be devided into different sub-priorities.

For example,

```
<style>
body
{
 background: url(page-bg.png);
}

#page-loading-progress::before
{
 background: url(spinning-circle.png) ... no-repeat;
}
</style>
<body>
 <progress id="page-loading-progress">...</progress>
 ...
</body>
```

Here it's reasonable to prioritise the load for the spinning-circle loading indicator as opposed to the large one that's used in `body`(though practically browsers tend to load both of the two images in parallel).

-- 
GitHub Notification of comment by Zhang-Junzhi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2994#issuecomment-411024581 using your GitHub account

Received on Tuesday, 7 August 2018 11:28:52 UTC