Performance: Error pages (+error.svelte)
MEDIUM IMPACT
This affects the page load speed and user experience when an error occurs, impacting how quickly the error content is shown and how stable the layout remains.
<script> export let error; </script> <section aria-live="assertive" role="alert"> <h1>{error.status}</h1> <p>{error.message}</p> </section>
<script> import HeavyComponent from '../components/HeavyComponent.svelte'; export let error; </script> <HeavyComponent /> <h1>{error.status}</h1> <p>{error.message}</p>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Heavy component on error page | High (many nodes) | Multiple reflows | High paint cost | [X] Bad |
| Minimal markup with semantic HTML | Low (few nodes) | Single reflow | Low paint cost | [OK] Good |