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

Extensive Client - Server Communication #175

Open
izderadicka opened this issue Feb 21, 2015 · 1 comment
Open

Extensive Client - Server Communication #175

izderadicka opened this issue Feb 21, 2015 · 1 comment

Comments

@izderadicka
Copy link

I'm playing with latest Opa - version 1.2.0 -- build 4463 and I was surprised by very heavy communication between client and server - I monitored requests in Chrome and Firefox dev tools.

Example - using sample birdy app ( but same behaviour I experienced in my test application):

Registration form:

  • switch focus from one input to another : 29 POST requests
  • submit (all fields empty) 110 POST requests
  • submit (correctly filled) 128 POST requests

Is this behaviour normal? I specially checked this in reference app, to be sure it's not issue in my code.
How such approach can scale?

@hbbio
Copy link
Member

hbbio commented Feb 21, 2015

Indeed, it should not be like that.

This is due to a regression probably introduced by changes to the i18n system in the last months. We have planned many changes here, but are lacking time to fix them now. Namely, we will switch the i18n runtime to FormatJS.

In the meantime, you can reduce the number of requests by adding slicing annotations (client, server) to your code.

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

No branches or pull requests

2 participants