4 ms·
You can pass the initial data as a json object directly with the server response. I'm using Rails, and https://github.com/gazay/gon https://github.com/gazay/go
by amikazmi 14y ago
You can pass the initial data as a json object directly with the server response.
I'm using Rails, and https://github.com/gazay/gon https://github.com/gazay/gon gem does it for you nicely.