Quick Left

This is a blog

GIFs, tech and stuff.

Precompiling jQuery Templates

If you're like us, Javascript templates are just about your favorite
front end technique that's come into fashion over the past few years.
Templates let you keep markup out of your code and takes all of the
trouble out of building against JSON APIs. There are lots of template
libraries to choose from, but we've most often found ourselves choosing
to work with the offical jQuery templating plugin, jquery-tmpl. Here's
how we optimized it.

Read More...

Cookies With My CORS

Since early implementations of the CORS (Cross-Origin Resource Sharing) specification, developers have been eager to drop the JSONP hack in favor of a proper cross-domain request.

CORS means that XHRs are sent with the ORIGIN header, and expect the server to include that ORIGIN (or *) in the Access-Control-Allow-Origin response header. For requests other than GET and some POST, this is done as a "preflight". The browser/server allow matched requests and the server responds with the cross-domain goodness.

Read More...

Tags