Re: [csswg-drafts] [css-view-transitions-2] Should ViewTransitions be triggered for reloads? (#8784)

To disable same-page transitions on reload, you can use JS in the head (it's a bit hacky but should give a direction):
```js
if (performance.navigation.type === PerformanceNavigation.TYPE_RELOAD) {
  document.documentElement.dataset.reload = true; 
}
window.onload = () => {
  document.documentElement.dataset.reload = false; 
}
```

```css
html[data-reload]::view-transitions {
  display: none;
}
```

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


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

Received on Tuesday, 30 May 2023 09:29:17 UTC