lodash / lodash.com

The Lodash website.
https://lodash.com/
Other
138 stars 84 forks source link

Anchor tags are not working in Chrome on first load #243

Open Woodz opened 3 years ago

Woodz commented 3 years ago

Reproduction:

Expected: Website jumps to anchor (concat in this example) Actual: Website stays on the top of the page

Note that anchor tags work correctly after the page has been loaded, i.e. clicking on an anchor link will scroll the screen to position it at the top and change the URL. I suspect that the lodash website may have delayed rendering which breaks the anchor links on load. Perhaps a workaround like https://stackoverflow.com/a/38588927/323177 could work? Or deferring rendering until all components are available?