Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all presentation into client-side #32

Open
rokstrnisa opened this issue Aug 3, 2012 · 0 comments
Open

Move all presentation into client-side #32

rokstrnisa opened this issue Aug 3, 2012 · 0 comments

Comments

@rokstrnisa
Copy link
Contributor

Whenever a user visits a page (i.e. url), the interaction between the client (browser, in JavaScript) and the server (in OCaml) should follow these steps:

  • The server returns a very basic HTML page that includes a reference to the JavaScript script.
  • The client downloads the referenced JavaScript (normally already cached in the browser).
  • The script then creates async JavaScript requests to the server based on url.
  • The server replies to async requests only with data in JSON format.
  • The client uses the data to generate the user interface.

Any further interaction with the page should also create JavaScript async requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant