nuxt / scripts

Plug-and-play script optimization for Nuxt applications. (Public Preview)
https://scripts.nuxt.com
MIT License
126 stars 8 forks source link

Investigate offloading entire scripts as a server proxy #87

Open harlan-zw opened 2 weeks ago

harlan-zw commented 2 weeks ago

Theoretically, we can proxy all of the client requests to be sent by the server, meaning we also technically don't need to load the client-side script at all.

This would require writing our own implementation for tracking the page events, this should be based on Plausible as they seem quite performant.

Inspo: https://developers.cloudflare.com/zaraz/

This should be fairly minimal to support as we can stub out he core functions already using the useScript API.