- Issue created by @ambient.impact
We're still seeing some unexpected layout shifting in Chrome on Android during page transitions on Omnipedia, despite the issue being completely fixed in Firefox on Android and a non-issue on all desktop browsers. The likely culprit is that aggregated CSS is being appended to the <head>
by Turbo before the transitions have started:
document.head.appendChild(element);
which means they may load and apply their styles before the page has been hidden by the transion.
See above.
We have two main options:
rel="preload" as="style"
attributes to have them load without being applied, and only applying them all as rel="stylesheet"
in one go when all have loaded. This will need some testing to verify that it results in reliable load events across major browsers.See above.
Less layout shifting and styles being applied/unapplied.
None probably.
None.
Active
2.0
Code