Python has a JSON module that can serialize simple data structures like dictionaries to a JSON string. This comes in handy when you're serving up some content through AJAX. Unfortunately, your fancy Python data structure will sometimes contain objects that don't fit easily into JSON, and the parser won't even try to work with it.
that since none of it is hitting a server, there's no need to worry about performance. And considering how browsers have
just not something we have to wrestle with often.
But it is still most certainly a bottleneck, and too many websites
have taken to gleefully dumping untenable processing loads on their visitors' computers. You've probably seen it: pages that
load up quickly, then lock for a second or longer, preventing you from scrolling, as the browser churns through a backlog
of social plugins, videos, and other intensive objects. In a modern browser like Chrome, it's simply annoying, but if
you're using an old version of IE, you'd might as well work on your novel between page loads.