logoalt Hacker News

efortistoday at 2:02 PM1 replyview on HN

another trick is adding speculation rules on MPA sites. so when you hover over a link the page gets prerendered. For example, my initial page takes ~80ms, but navigating to other pages take 20ms

    prerender: [
      {
         where: { href_matches: '/*' },
         eagerness: 'moderate'
      }
    ]

That doesn't work on Safari, FF, and Brave, but you could do something like this:

https://github.com/ericfortis/mockaton/blob/main/www/src/_as...


Replies

chmod775today at 2:16 PM

Most adblockers/privacy extensions disable this.

uBlock Origin does it by default for instance.

show 1 reply