Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guides: Implement hashed routing #10

Open
ericbtaylorjr opened this issue Mar 15, 2016 · 4 comments
Open

Guides: Implement hashed routing #10

ericbtaylorjr opened this issue Mar 15, 2016 · 4 comments
Assignees

Comments

@ericbtaylorjr
Copy link
Owner

Guides flow should be: "Guides" > "Spec" > "Spec Guide"

Default section should be "Overview" and user should be able to navigation through the Spec Guide via the section navigation, which will be hashed content loaded via AJAX.

Example: guides/rogue/outlaw#rotation

@raynjamin
Copy link
Collaborator

@dellinger Hey man, I spoke with @Accomp some more and he would prefer the ajax loading of bits of content considering there would be so much to load at once if we used traditional hash navigation.

The biggest potential problem is loading images. If you link to/navigate to the bottom of the page, it's possible for a very terrible user experience while all of the content and images to load. We're talking either the user has to wait until all the images load and THEN navigate to the bottom of the page, OR the user navigates immediately and has to deal with content flashing/moving around until all the assets load.

After some discussion (and I think we're going to need this regardless) I think a better option would be to load all the content on the page, but to use an image defer library to set placeholder images in the page, replacing them as images load with their actual assets. This would prevent the page from moving around on the user and would be a more pragmatic approach to the hash navigation on the page.

I've not done a ton of research but I've seen a couple candidate libraries so far. Maybe research this and see what you come up with?

@dellinger
Copy link
Contributor

Gotcha, I can get on board with that. I'll check to see a few of them out there. I may need to see what you mean as far as the ajax loading is concerned -- where does it fire? When user clicks a link it gets fired?

@raynjamin
Copy link
Collaborator

No forget the Ajax loading of the content. Current plan is to load the entire page and asynchronously load images so the page doesn't flicker around like a motherfucker.

@dellinger
Copy link
Contributor

Roger roger.

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

No branches or pull requests

3 participants