A high-performance, mobile-first travel and tour booking website built with static HTML, CSS, and JavaScript.
- Lazy Loading: All non-critical images use native lazy loading with fallback
- Priority Loading: Hero image uses
loading="eager"andfetchpriority="high" - Responsive Images: Images are optimized for different screen sizes
- Format Optimization: Ready for WebP conversion (recommended for production)
- Mobile-First Approach: Styles start from mobile and scale up
- Efficient Selectors: Minimal CSS specificity for faster rendering
- Critical CSS: Inline critical styles or minimal external CSS
- No Heavy Frameworks: Vanilla CSS for maximum performance
- CSS Variables: Efficient theming and maintainability
- Event Delegation: Efficient event handling
- Passive Event Listeners: Smooth scrolling without blocking
- Intersection Observer: Efficient scroll-based animations
- Debounced Scroll Events: Optimized header effects
- Minimal Dependencies: No external libraries required
- Semantic HTML5: Better SEO and accessibility
- Progressive Enhancement: Works without JavaScript
- Reduced Motion Support: Respects user preferences
- Efficient Font Loading: Google Fonts with
display=swap - Preconnect: DNS prefetching for external resources
DOG/
├── index.html # Homepage
├── css/
│ └── style.css # Main stylesheet (mobile-first)
├── js/
│ └── main.js # Main JavaScript
├── assets/
│ └── images/
│ └── homepage/ # Homepage images
└── README.md # This file
- Mobile-First Responsive Design: Optimized for mobile → tablet → laptop → desktop
- Modern UI/UX: Clean, professional design with smooth animations
- Accessibility: ARIA labels, semantic HTML, keyboard navigation
- Color Scheme: Orange (#FF6B35) accent with dark/light theme
- Mobile: < 768px (default, mobile-first)
- Tablet: 768px - 1023px
- Laptop: 1024px - 1199px
- Desktop: 1200px+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- IE11+ (with graceful degradation)
- Mobile browsers (iOS Safari, Chrome Mobile)
- Homepage (
index.html) - Complete landing page - Blog (
blog.html) - Coming soon - Testimonials (
testimonials.html) - Coming soon - Gallery (
gallery.html) - Coming soon - Locations (
locations.html) - Coming soon - Contact (
contact.html) - Coming soon
- Clone or download this repository
- Open
index.htmlin a web browser - For development server (recommended):
# Using Python python -m http.server 8000 # Using Node.js (http-server) npx http-server -p 8000
-
Image Optimization:
- Convert images to WebP format
- Use responsive images with
srcset - Compress images (TinyPNG, ImageOptim)
-
CSS Optimization:
- Minify CSS for production
- Remove unused CSS
- Consider critical CSS extraction
-
JavaScript Optimization:
- Minify JavaScript
- Use code splitting if needed
- Consider service workers for offline support
-
Server Optimization:
- Enable GZIP/Brotli compression
- Use CDN for static assets
- Implement caching headers
- Consider HTTP/2 or HTTP/3
-
Font Optimization:
- Self-host fonts for better control
- Use font-display: swap
- Subset fonts to include only needed characters
Edit CSS variables in css/style.css:
:root {
--primary-color: #FF6B35;
--text-dark: #1A1A1A;
--text-light: #FFFFFF;
/* ... */
}- Update text content in
index.html - Replace images in
assets/images/homepage/ - Modify navigation links in header and footer
- All images are currently using placeholder paths from
assets/images/homepage/ - Form submissions are currently logged to console (implement backend as needed)
- Testimonials slider works on mobile with touch scrolling
- Mobile menu closes on link click or outside click
- Add remaining pages (Blog, Gallery, Testimonials, Locations, Contact)
- Implement backend for form submissions
- Add image optimization pipeline
- Implement service worker for offline support
- Add analytics integration
- SEO optimization (meta tags, structured data)
This project is open source and available for use.
DriveOffGrid - Where Luxury Meets The Open Road