jimmynotjim / scrollnav

A dependency free JavaScript plugin for auto generating single page navigation
http://scrollnav.com
MIT License
461 stars 127 forks source link

Added parsing of page url for element hash #19

Closed jimmynotjim closed 11 years ago

jimmynotjim commented 11 years ago

This PR adds parsing for an element hash in the page's url. If one exists the plugin scrolls the page to that location after the build is complete. Prior to this change if the plugin took too long to load (typically due to other scripts blocking page render) the browser would attempt to scroll the viewport before the section ids were inserted and fail.