A performant, vanilla JS implementation with modern web capabilities
- ✨ Interactive particle.js background
- 🌍 Real-time visitor counter
- 📱 Fully responsive design
- 🎨 Clean minimalist UI
- 🔄 English/Bengali language toggle
- ⚡ Fast loading (under 2s)
- 🔍 SEO optimized
| All devaice View |
|---|
![]() |
- Zero-build system (No Webpack/Rollup)
- CSS Custom Properties for theming
- IntersectionObserver API for scroll effects
- Web Workers for particle calculations (optional)
| Metric | Value | Target |
|---|---|---|
| TTI | 1.2s | <2s |
| CLS | 0.05 | <0.1 |
| JS Bundle | 8.4kb (minified) | <15kb |
| Cache-Control | max-age=31536000 | - |
// src/particles/engine.js
class ParticleEngine {
constructor(canvas) {
this.t = 0;
this.particles = Array(150).fill().map(() => ({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
// GPU-optimized properties
}));
}
// RequestAnimationFrame optimized
update() {
this.particles.forEach(p => {
p.x += Math.cos(this.t * p.speed) * 0.5;
p.y += Math.sin(this.t * p.speed) * 0.5;
});
this.t += 0.005;
}
}- Inlined critical CSS (3.2kb)
- Deferred non-essential JS
- Preloaded web fonts
- SVG sprite sheet for icons
sequenceDiagram
participant Client
participant VisitorAPI
Client->>VisitorAPI: GET /counter
VisitorAPI-->>Client: {count: 1243, unique: true}
Client->>LocalStorage: Cache response
# .env.production
GA_TRACKING_ID=UA-XXXXX-X
PARTICLE_COUNT=150 # Reduce for mobile| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| CSS Variables | ✅ | ✅ | ✅ | ✅ |
| IntersectionObserver | ✅ | ✅ | ✅ | ✅ |
| Web Workers | ✅ | ✅ | ✅ | ✅ |
- Atomic CSS organization
- ESLint AirBnB preset (no config needed)
- Conventional commits
- JSDoc type hints
/**
* @typedef {Object} ParticleConfig
* @property {number} density - Particles per 1000px²
* @property {string} color - HSL value
*/| Asset Type | Max Size |
|---|---|
| HTML | 10kb |
| CSS | 5kb |
| JS | 15kb |
| Images | 50kb each |
- GitHub: obaidul-bd
- Website: Md. Obaidul Islam
This project is licensed under the MIT License - see the LICENSE file for details.
Designed for scalability, optimized for performance, and developed with minimalism in mind.
Made with ❤️ by Obaidul BD
© 2023 All Rights Reserved
