Re: [csswg-drafts] [css-view-transitions-2] UAs should show loading indicators when waiting for response (#9156)

> Should there maybe be a pseudo-class to indicate that the new document is loading to enable pre-view-transition animations or custom loaders?

@noamr @domenic FYI. If there was such a class (or media-query like primitive), when would you expect it to stop applying so the loading indicator goes away. When the document does its first render, the load event fires, something else. Intuitively, load event makes sense. I think loading indicators in browser UI also stop when this event is fired.

> But there would need to be UA styles to make sure a loading indicator is shown in case no custom logic is implemented.

Loading indicators by the browser are generally outside Document scope, so they're drawn irrespective of the page content. For example the loading bar or spinner in browser UI.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 24 August 2023 21:06:01 UTC