We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently all widgets are sending XMLHttpRequests independently. I think this sometimes impacting on server performance, especially on shared hosting.
What I'd suggest is to use Promise (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) and queue all widget requests. I think there is no need to "attack" server with multiple requests at the same time. Just send one and wait until it finishes then send another one.
Possibly, this could be even configured in Piwik options to send widget XHR requests asynchronously or synchronously.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, but we won't queue XmlHttpRequests as it would be too slow from a user perspective.
Sorry, something went wrong.
No branches or pull requests
Currently all widgets are sending XMLHttpRequests independently. I think this sometimes impacting on server performance, especially on shared hosting.
What I'd suggest is to use Promise (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise) and queue all widget requests. I think there is no need to "attack" server with multiple requests at the same time. Just send one and wait until it finishes then send another one.
Possibly, this could be even configured in Piwik options to send widget XHR requests asynchronously or synchronously.
The text was updated successfully, but these errors were encountered: