Host your own Playground
You can host the Playground on your own domain instead of playground.wordpress.net.
This is useful for having full control over its content and behavior, as well as removing dependency on a third-party server. It can provide a more customized user experience, for example: a playground with preinstalled plugins and themes, default site settings, or demo content.
Before you start
Self-hosting Playground gives you full control, but requires understanding a few key concepts:
What to expect
- Initial setup complexity: Building and deploying Playground involves multiple steps. Allow time for troubleshooting during your first deployment.
- Static file hosting: Playground is primarily static files (HTML, JS, WASM) with minimal server-side requirements.
- Browser-based execution: All WordPress processing happens in the user's browser via WebAssembly—your server only delivers files.
Performance considerations
Loading times depend on several factors:
| Factor | Impact | Optimization |
|---|---|---|
| Plugin size | Large plugins (e.g., WooCommerce) can take 30-60 seconds to install | Pre-install plugins in your WordPress build |
| Network speed | WASM files are ~15-30MB | Use CDN with proper caching headers |
| Browser | Chrome/Edge perform best; Safari uses fallback mechanisms | Test across browsers |
| Device | Mobile devices load slower than desktop | Warn mobile users about longer load times |
Browser compatibility
Playground works across modern browsers, but with some differences:
| Browser | Status | Notes |
|---|---|---|
| Chrome/Edge | ✅ Best performance | Full support for all features |
| Firefox | ✅ Good | Reliable performance |
| Safari | ✅ Good | Recent improvements significantly enhanced reliability |
| Mobile browsers | ⚠️ Limited | Works, but with higher memory usage, and a 4G connection can impact the experience |
Technical note: Safari uses MessagePorts instead of SharedArrayBuffer for streaming responses. This fallback works reliably but adds slight overhead compared to Chrome/Edge.