next-dom-ready dom ready based on next toolkit usage: nx.domReady(function(){ console.log('Hello world!'); });