new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Nuxt · API · all subjects

composables/onnuxtready

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

onNuxtReady composable

onNuxtReady is a composable that allows running a callback after the app has finished initializing. It only runs on the client-side and is ideal for running code that should not block the initial rendering of the app.

onNuxtReady safe to call after initialization

It is safe to run onNuxtReady even after the app has already initialized. In this case, the code will be registered to run in the next idle callback.

onNuxtReady example with analytics library

The example shows using onNuxtReady in a client-side plugin to dynamically import a large analytics library after app initialization: export default defineNuxtPlugin(() => { onNuxtReady(async () => { const myAnalyticsLibrary = await import('my-big-analytics-library'); // do something with myAnalyticsLibrary }); })

onNuxtReady minimum version

onNuxtReady is available from Nuxt 3.1 and later.

Give your agent this brain