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.

Get Programming Social Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.