This page makes \cancel, \bcancel, \xcancel, and \cancelto all be defined so that they will load the cancel.js extension when first used.

Here is the first usage: $$\cancel{x+1}$$. It will cause the cancel package to be loaded automatically.