Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Load inline "Official Interpretations" via Ajax #726

Open
ascott1 opened this issue Jun 5, 2015 · 2 comments
Open

Load inline "Official Interpretations" via Ajax #726

ascott1 opened this issue Jun 5, 2015 · 2 comments

Comments

@ascott1
Copy link
Member

ascott1 commented Jun 5, 2015

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:

screen shot 2015-06-05 at 3 18 44 pm

When a user clicks anywhere on the interpretation it expands, revealing the content:

screen shot 2015-06-05 at 3 18 53 pm

@ascott1
Copy link
Member Author

ascott1 commented Jun 5, 2015

cc: @jpyuda @jehlers

@jpyuda
Copy link
Contributor

jpyuda commented Aug 18, 2015

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants