Developers building Drupal sites these days usually concatenate all their js into three massive JS files that are loaded on every page. Whilst you can get away with this on small sites that have a minimal amount of code, what happens when your project really starts to grow? In this talk, I’ll be presenting an effective set of design patterns for large-scale site architecture that will eliminate the typical growth pains you see as your site expands.
You’ll learn how to keep your site’s logic truly decoupled, build JS modules that can exist on their own independently so they can be easily dropped into other projects, separate your JS so you only load what you need on a page by page basis, and future-proof your code for when you need to upgrade your theme/module in the future.
Slides can be found at slides.com/rymcveigh/scalable-js
Sposored by Miles Partnership.