Static GitHub Issues

[1154] 'loaded' event on client side

prev: Get store in an external js file.
next: @click don't work well in UC browser

Hi, I'm wondering if Nuxt.js provides the ability to notify the client that Nuxt has setup properly. The equivalent to to jQuery might be

$( document ).ready()

The use case is that I may have some code depending on window.$Nuxt, and a in-house mechanism for detect if it's ready would be great, for example, a simple event would do:

var e = new CustomEvent('nuxt-loaded')
window. dispatchEvent(e)
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1013">#c1013</a>)</em></sub></div>