I went throught this tutorial https://pla.nette.org/…ajax-example and the code works but it seems to be very slow. It takes almost 2 seconds before the content of the div changes. Is this the normal behaviour of Nette? I'm asking because I can get the same result with 3 lines of jQuery and it takes just a couple of milliseconds.
Last edited by netteman (2016-06-09 21:09)
Did you tested that on production server? It's often not about Nette/AJAX/jQuery speed, but about your computer speed. I get often AJAX responses in about 3 seconds on my laptop, but after moving onto production server, I have response in less than 100ms
I tested it today and the response on my production server is also under 100 ms. Should I worry that the server needs more time in comparison to ordinary jQuery? (or in other words that the website is approximately 15× less efficient than it could be?)
(My non-nette code on the production server needs 47 ms to update a row in database and 32 ms to select the row and change content of a div)
Last edited by netteman (2016-06-10 20:43)
Jan Tvrdík wrote:
I tried https://stackoverflow.com/…sable-xdebug on my laptop but nothing has changed.
You need to remove the extension entirely, disabling xdebug does not remove the slowdown.
I deleted the xdebug dll extension and the response is about 20% faster.