# UnifiedWriter dev-5.66.5 RequireJS demo loader policy

## Purpose

This build replaces the local RequireJS-like demo loader with official RequireJS.

UnifiedWriter follows the iToolkits AMD policy: Host and Demo code must load a real AMD loader, configure package aliases, and then require `UnifiedWriter/main`. The local `scripts/vendor/require.js` mini loader is no longer shipped or referenced by demos.

## Demo loader

All demo HTML files that boot UnifiedWriter now load:

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.js"></script>
```

Then they configure aliases:

```javascript
require.config({
  paths: {
    UnifiedControl: 'https://cdn.skylarkjs.com/itoolkits/developments/UnifiedControl/scripts',
    UnifiedWriter: '../scripts'
  }
});
```

The `ucRoot` query parameter continues to mean the UnifiedControl package root URL. The demo derives the scripts alias by appending `/scripts` unless a value already ends in `/scripts`.

## UnifiedControl dependency

UnifiedControl remains a peer package. It is not copied into UnifiedWriter. EditorControl imports only the required base class through `UnifiedControl/controls/control` so optional UnifiedControl development modules do not participate in Writer boot.

## Superseded behavior

The dev-5.66.4 local mini-loader patch is superseded. Do not use `scripts/vendor/require.js`; it has been removed from this package to avoid confusion with official RequireJS.
