Page load function in node js
<p>In javascript call "document.ready(funtion({}))" for loading data at once when page is loaded.Is there any alternative funtion in node js?If yes please let me know.If no please sugess me way for,I want to initialize some data on pageload.
Thank you in advance..!</p>