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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -