Alex Rivera | Logout

How does disqus work?

Asked 2010-03-10T07:43:32.087
9

Does anyone know how disqus works?

It manages comments on a blog, but the comments are all held on third-party site. Seems like a neat use of cross-site communication.

Edit
Report

1 Answer

8

The general pattern used is JSONP

Its actually implemented in a fairly sophisticated way (at least on the jQuery site) ... they defer the loading of the disqus.js and thread.js files until the user scrolls to the comment section.

The thread.js file contains json content for the comments, which are rendered into the page after its loaded.

answered 2010-09-01T14:15:09.337

Your Answer