spyysalo / annodoc

Annodoc annotation documentation support system
http://spyysalo.github.io/annodoc
MIT License
35 stars 57 forks source link

Reduce or hide reflows #11

Closed spyysalo closed 10 years ago

spyysalo commented 10 years ago

When opening a page with many visualizations and scrolling down fast or jumping directly to a position some distance down, the page "jumps" up and down repeatedly as annotations are first blanked ("jump up") and then replaced with visualizations ("jump down").

To replicate, open e.g. http://universaldependencies.github.io/docs/u/dep/all.html and jump immediately to the end of the page.

Ideally, the reflows would be eliminated so that the annotations are simply replaced with the visualization without displaying an intermediate state. Alternatively, the effect could be reduced by hiding (e.g. display: none) all annotations in bulk early in processing.

spyysalo commented 10 years ago

dbcda54a4f1c47c0cdae96a0a02b6c0fdefbdcae implements the display: none alternative. The page now scrolls steadily up after initialization, which isn't great, but at least it's not jumping back and forth.