For users that have visited previously, we can speed loading by a factor of ten by switching from doing the AJAX request via POST to GET (which allows caching). You can see this by looking at Chrome’s dev console -> ‘network’ tab and observing a page load.
To reproduce / test:
Open Chrome's network tab
Click the 'disable cache' button
Load the homepage
Click the 'disable cache' button (enable the cache again)
Reload the page and observe the load time (note that regardless of POST/GET mode, it seems to be faster than on first page load anyway, but also GET is much faster than POST due to caching).
AJAX request with POST:
improved with GET:
My testing showed a factor of 10 improvement, from 4s to 460ms but that was also when emulating a slow network (EDGE 250Kbps with 300ms RTT).
This fixes #123.
‘POST requests are never cached’: http://blog.httpwatch.com/2009/08/07/ajax-caching-two-important-facts/
For users that have visited previously, we can speed loading by a factor of ten by switching from doing the AJAX request via POST to GET (which allows caching). You can see this by looking at Chrome’s dev console -> ‘network’ tab and observing a page load.
To reproduce / test:
AJAX request with POST:
improved with GET:
My testing showed a factor of 10 improvement, from 4s to 460ms but that was also when emulating a slow network (EDGE 250Kbps with 300ms RTT).