guardian/frontend — pull request #974 by phamann (2013-06-06 20:27:19+00:00)
Title: Discussion v0.1

Initial release of read-only comments.

- Comments are ajaxed in when user intents to view them. We may have to perf test this as latency and loading time may be an issue.
- Threads are collapsed
- link is offered to main site to comment
- Report loads form in blank window
- Pagination loads in next page directly below

The current api call ask for 50 comments, which - by their design - is the first 50 **top level** comments. Therefore if comments include threaded replies the total number returned is > 100 comments. This is an issue on mobile creating a lot to scroll through and a very large DOM tree. But for the time being we have to stick we these calls so we are only hitting their cache (www makes the same calls) and not creating new origin requests, until they can handle the load.