IT lexicon › Web › The JavaScript Trap

The JavaScript Trap

Web På svenska → Updated: 2026-11-01

Richard Stallman's 2009 essay arguing that websites quietly run nonfree software in your browser every time you visit.

The argument is simple: JavaScript sent to the browser is a program, and if it lacks a free licence the user is running nonfree code without having installed anything. Minified code isn't source either, however readable it may technically be. Stallman drew a line between trivial scripts, like a button that changes colour, and substantial programs such as entire web apps.

The FSF's answer was the GNU LibreJS extension, which blocks nontrivial JavaScript that doesn't carry a free licence. Licences can be declared with @license comments in the file or in a table following JavaScript Web Labels. In practice, switching LibreJS on breaks the overwhelming majority of the web – which Stallman tends to treat as confirmation.

← Back to the lexicon