mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Improvement This pull-request should address https://github.com/vercel/next.js/issues/24021, improving the page change announcement for assistive technologies by giving priority to `document.title` over `h1`. Interestingly, it would also improve a potential performance bottleneck by skipping calls to `innerText` on the main `h1` raised in [this comment](https://github.com/vercel/next.js/pull/20428#issuecomment-962537038).
7 lines
116 B
JavaScript
7 lines
116 B
JavaScript
export default () => (
|
|
<div id="page-with-h1">
|
|
<h1>My heading</h1>
|
|
<div>Extraneous stuff</div>
|
|
</div>
|
|
)
|