O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cajoling Scripts from the Command Line

Caja secures your frontend code by sanitizing (or cajoling, in Caja terms) it through the command-line JavaScript compiler. In the sections that follow, we will explore how to take a mixed HTML/JavaScript file source and build out a cajoled, safe version of the code.

Once we see how to cajole our code, we will look at methods for reducing the weight of our JavaScript files.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required