🚀 WebMiner Production Example

Demonstrating the optimized Production build

🏗️ Development Build Dev

  • File: webminer.js
  • Size: ~88 KB
  • Comments: Full documentation
  • Formatting: Human-readable
  • Use Case: Development, debugging

⚡ Production Build Prod

  • File: webminer.min.js
  • Size: ~53 KB (40% smaller)
  • Comments: License only
  • Formatting: Optimized
  • Use Case: Production deployment

📈 Production Build Benefits

📋 Production Integration

Simple script tag integration with the minified version:

<!-- Production WebMiner Integration --> <script src="webminer.min.js" data-pool="wss://your-pool.com" data-wallet="YOUR_MONERO_ADDRESS" data-throttle="0.25" data-auto-start="false"> </script>

Or programmatic initialization:

<script src="webminer.min.js"></script> <script> const miner = new WebMiner({ pool: 'wss://your-pool.com', wallet: 'YOUR_MONERO_ADDRESS', throttle: 0.20, // 20% CPU usage autoStart: false // Always require explicit consent }); // Start mining with consent miner.start().then(started => { if (started) { console.log('Mining started with user consent'); } }); </script>

🔧 Test the Production Build

This page uses the minified production version. Test all functionality:

Production WebMiner ready. Click buttons above to test functionality.

📊 Performance Metrics

53KB
File Size
-
Load Time
0.0
Hash Rate (H/s)
0%
CPU Usage

🌐 Deployment Checklist

  • ✅ Use webminer.min.js for production
  • ✅ Configure your mining pool URL and wallet address
  • ✅ Set appropriate CPU throttle (10-30% recommended)
  • ✅ Test consent flow on your actual domain
  • ✅ Verify mobile experience and battery protection
  • ✅ Set up Content Security Policy headers
  • ✅ Monitor user acceptance rates and performance