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

> 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.

I tend to agree. Although another approach, which might be better, is to tie the pseudo-class explicitly to the browser loading indicator. The difference is that in cases where we give control over the loading indicator, such as with the existing navigation API for same-document navigations, or with new APIs such as https://github.com/whatwg/html/issues/9090 / https://github.com/WICG/navigation-api/issues/256#issuecomment-1527059530 for cross-document navigations, the pseudo-class would follow the modified timing, instead of following the load event.

-- 
GitHub Notification of comment by domenic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9156#issuecomment-1692442935 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:35:01 UTC