RequireJSUserScript
✓ Published0🌍 Public
Aabernier
Last edited Feb 24, 2012
Created on Feb 12, 2012
This example shows a UserScript that loads RequireJS into a page and uses it to manage modular dependencies for greeting and logging. The script injects the RequireJS library from GitHub, then executes a callback that configures the module base URL and loads an `index` module. That module depends on `greetings` and jQuery, and `greetings` depends on `speech`, demonstrating asynchronous dependency resolution via `require.config` and `define`.
AI-generated description