legit

Fork of https://git.icyphox.sh/legit

Load aside section before main section on commit page Commit page's body can be quite long depends on a commit. If it's sufficiently long, browser renders aside after long main content. The problem is that causes reflow thus unnecessary layout calculations. With this patch, aside allocates its space by appearing before the main content, so regardless of how long the main content, reflow does not happen. The only downside is order of tab navigation and screen reader pronouncing sections is different to other pages, due to HTML/CSS spec and legacy bullshit a.k.a., accessibility practices is total garbage. But this is worth the inconvenience given how inefficient and annoying the reflow is.

Changes

1 changed files (+59/-59)