Skip to content

scrollToHashedElement inconsistent due to page load and loading content #2076

Closed Answered by auniverseaway
JasonHowellSlavin asked this question in Q&A
Discussion options

You must be logged in to vote

There are parts that Milo can control for load and parts that it cannot.

I would probably advocate that Milo fires an event after footer is visible.

There's a small chance there's still content in the middle to load, but you would also have CLS issues (or intersection observers) if that was the case.

I think this would get you further than anything else, but it may take too long. You visitors probably scrolls before the event fires.

This is an age old problem with dynamic content we assemble in real-time.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JasonHowellSlavin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants