javascript - Insert data into one page app for initial load? -
i'm serving 1 page app. app needs request initial data server once it's loaded.
is there anyway dynamically serve data initial asset load of css/html/javascript, without rendering in html?
sending js object data don't need ping server?
inserting script tag? adding dynamically created js file asset load?
a little bit lost, appreciated.
in opinion, best way serve dynamic content node.js server client use socket.io.
if don't wanna use socket.io, can try create dynamic page acts different on node.js server, , use xmlhttprequests receive data.
Comments
Post a Comment