Company
Date Published
Author
Mike Hartington
Word count
1318
Language
English
Hacker News points
None

Summary

The blog post by Mike Hartington explores two approaches to organizing Angular and Ionic applications for optimal lazy loading by focusing on UI components, directives, and pipes. It presents two strategies: encapsulated modules, where each component and pipe is wrapped into its own module to ensure minimal code is loaded, and shared common modules, where all components and pipes are bundled into a single module for simplicity. The encapsulated modules approach emphasizes separation and encapsulation, although it requires more boilerplate code, whereas the shared common modules approach simplifies management at the cost of potentially larger code chunks. The post advises developers to evaluate these options based on their app's size and complexity, aiming to send the least amount of code per chunk for efficiency, and suggests that the remaining focus should be on optimizing libraries for mobile-friendliness.