Bart Spaans

Bart Spaans

@bartspaans.com

Self-taught developer currently creating ForesightJS, an open-source library for prefetching based on mouse movement

30 followers103 following73 posts

Mobile support for js.foresight beta is live 😏. Let me know what you think and if you run into any bugs. It has 2 options "viewport" (default) and "onTouchStart". Which can be set by using the touchDeviceStrategy prop during initialization.

Tried @lit.dev for the Foresight devtools and its so much fun to work with. Probably will make a full switch to it as the current control panel is getting hard to maintain without a framework.

Bundle Results of ForesightJS 3.0 > 2.2 - Bundle size: 77.6kB β†’ 25kB (-68%) - Gzipped: 18.6kB β†’ 7.7kB (-58%) - Download time: 372ms β†’ 155ms (-58%) - Dependencies: 3 β†’ 2

I'm trying to decouple the Foresight Debugger completely from the js.foresight package. However, I don't know the right approach to take for this. Is there anyone with experience doing that is open for a chat?

Just shipped ForesightJS v2.1 performance update. Key changes: - Replaced ResizeObserver + scroll/resize events with PositionObserver for async bounds calculation - Added IntersectionObserver to only track elements in the viewport Check out the changelog: github.com/spaansba/For...

github.comRelease V2.1 ~ Performance Gains and better debugger! Β· spaansba/ForesightJSFeatures Added onAnyCallbackFired to the ForesightManager, this function will run when ANY callback function is hit. Read More Added new debuggerSettings.showNameTags to show or hide name tags on ...

Bart Spaans reposted

πŸ“¦ ForesightJS - Modern way to prefetch your data This cool library predicts cursor moves to prefetch elements earlier Docs show how to use with Next.js and React Router link components Better than waiting for hover πŸ‘Œ Even supports predictive tab keyboard nav πŸ˜„

I like AI in general but I absolutely hate the part where it takes over human interaction. I dont want to send an AI written reply to a friend and I hope my friend doesn't want to summarize my message aswell. #GoogleIO

You are up to date.