DEV Community

loading...

Discussion on: window.location Cheatsheet

Collapse
corentinbettiol profile image
Corentin Bettiol

Good to know. I think I'm starting to understand how dev.to work and why it is so fast (hover on link => make request and store result in cache, click on link = assign url and load cached content).

I may implement those tricks to enhance user experience on my websites :)

Collapse
andy profile image
Andy Zhao (he/him)

We use InstantClick for that "hover on link => make a request" effect :) instantclick.io/

Loading cached content is mostly because of Fastly!

Most of the pages are Rails pages, and there's some Preact mixed in every once in a while.

Collapse
corentinbettiol profile image
Corentin Bettiol

Don't really know how caching is managed or anything about the Rail framework, but instanclick seems to be a gold nugget!

Thanks for the link, and bravo for this insanely fast website :)

Collapse
samanthaming profile image
Samantha Ming Author

woooo, would love to see the inner working of how dev.to works 🤩

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

It's Preact. You can find source code on GitHub.

Forem Open with the Forem app