Open ascott1 opened 9 years ago
cc: @jpyuda @jehlers
I think I'd have it change from the "show" state to the "hide" state, and slide down far enough to have space for a loading spinner.
The big question then would be whether clicking "hide" cancels the loading or just preloads it in case the user opens that interp.
For bonus points, you could explore lazy-loading in interpretations that apply to the scroll position within the section in an attempt to pre-load likely interps.
@jehlers anything else I'm missing here?
Right now the official interpretations are part of the document, making some sections of the regs rather large. @cmc333333 suggested loading these via Ajax instead.
Before implementing, this requires some UX though. Should the content load before the interpretation "opens?" If so, should there be a visual indicator that the content is loading? If so, how do we work that into the current design of the inline interpretations?
Current Interaction
Interpretation content is hidden by default:
When a user clicks anywhere on the interpretation it expands, revealing the content: