JavaScript Cleanup Summary
JavaScript Cleanup Summary
Files Removed
Backup and Old Files
*-backup.jsfiles (5 files)*-old.jsfiles (2 files)*-test.jsfiles (1 file)main-clean.js
Unused Animation Systems
hero-animations.jssimple-animations.jsdisable-animations.jsdisable-scrolltrigger.jsanimation/directory (4 files)
Unused Swup Integration Files
swup-integration.jsswup-integration-simple.jsswup-integration-working.jsswup-modern.jsswup-coordinator.jsswup-terminal-system.jsswup-terminal-system-new.jsswup-terminal-manager.jsswup-fragment-plugin.js
Unused Hero System Files
hero-drag-swap.jshero-video.jsmaster-hero-coordinator.jshero-manager.jssimple-hero-animator.jsfallback-hero-system.js
Duplicate Vendor Libraries
vendor/directory (12 files)swup/directory (5 files)dist/vendor/directory (15 files)bundles/directory (4 files)
Unused GSAP Plugins
Draggable.min.js(not used in loaded files)ScrollToPlugin.min.js(not used in current swup system)- 19 other premium GSAP plugins
Other Unused Files
hamburger.jsterminal-optimized.jsinline-console-disable.js
Files Kept (Active Usage)
Core Libraries
main.js- Site initializationutils.js- Utility functions
GSAP (Minimized)
gsap.min.js- Core GSAP libraryScrollTrigger.min.js- Scroll animationsTextPlugin.min.js- Terminal typing effects
Page Systems
swup-modern-clean.js- Page transitionshero-media-animations.js- Hero section animationsnavigation.js- Navigation interactionsterminal.js- Terminal component
Gallery System
gallery.js- Main gallerygallery/animation-manager.js- Gallery animationsgallery/lightbox-manager.js- Lightbox functionalitygallery/swiper-manager.js- Swiper carouselgallery/gallery-scroll-animations.js- Scroll effects
Other Components
cursor.js- Custom cursorsearch.js- Site searchback-button-handler.js- Browser back buttonvideojs-manager.js- Video playerconsole-manager.js- Console debugging
Updated scripts.html
Removed:
- Unused GSAP Draggable plugin loading
- Unused GSAP ScrollToPlugin loading
- Redundant plugin registration code
Optimized:
- Streamlined GSAP plugin loading
- Better error handling
- Cleaner plugin registration
Results
✅ Removed ~100 unused JavaScript files
✅ Reduced GSAP plugins from 22 to 3
✅ Eliminated duplicate vendor libraries
✅ Maintained all active functionality
✅ Jekyll builds successfully
✅ Cleaner, more maintainable codebase
Performance Benefits
- Faster development builds - Fewer files to process
- Reduced bundle size - Only essential plugins loaded
- Better code clarity - No confusion from backup files
- Easier maintenance - Clear separation of active vs unused code
- Improved debugging - Less noise in file structure