Client Entry

🚧
This is currently being implemented. ETA very soon.

The +client.js file adds client-side JavaScript. It's usually used for initializing client-side code, such as error tracking.

For executing code upon page lifecycle changes, see following hooks instead:

// /pages/+client.js
// Environment: client

console.log("I'm the first line of executed client-side JavaScript.")

Examples