Recently I've been working on adding automatic image placeholders to Angular, and with version 17.2, it's finally available! Really excited to see what people think. https://t.co/n8J4k9RJTt
Another delightful feature available in Angular v17 is: phases for afterRender and afterNextRender!
Now Angular can optimally schedule callbacks for an application and all of its libraries, minimizing layout thrashing!
Really excited about one of the features I worked on for this release--automated preconnects! Now, when you use NgOptimizedImage, Angular looks for image domains in your code and automatically adds preconnect links, which can improve your LCP score by a lot.
Angular v17.
The framework you love, with a fresh new look, and:
๐ฆฅ deferrable views
โก๏ธ up to 90% faster, intuitive built-in control flow
๐๏ธ up to 87% faster build times with hybrid rendering
๐๏ธ Vite + esbuild builds
+ more!
https://t.co/mBtYROh2u7
@ninan_phillip@brandontroberts@angular Loaders mainly let you request images at different sizes, which generally requires using a CDN that has that capability. NgOptimizedImage still works without it, but you miss out on some of the optimizations.
@advaithsurya@karaforthewin@angular For more advanced sizing, you can put the image inside a <div> or other element, then use fill mode to make it totally fill that element. More info at https://t.co/Zb1ynTrLum
@benLune@angular To get behavior different than the default full-viewport width, you can use the `sizes` attribute (https://t.co/NysBGLffdg), which is fully supported by NgOptimizedImage. For example, `sizes="20vw"` would be correct for 5 columns
Super excited that we got to backport the new NgOptimizedImage directive to Angular 13! Now these performance optimizations are available to a bigger chunk of the Angular ecosystem:
Are you running Angular v13? Still want to take advantage of the NgOptimizedImage directive?
Chrome Aurora has partnered with Angular to backport the image directive! This gives you access to:
- srcset generation
- fill mode
- loader config options
https://t.co/qAEVm7IC3M
I wrote an RFC for a new @nextjs package that would make it easier to load popular third-party libraries ๐
Share your feedback!
https://t.co/W9np5Z1Mue
Next.js Layouts RFC
โ Nested routes / layouts
โ Designed for Server Components
โ Fetch in layouts while avoiding waterfalls
โ React 18 features โ startTransition, Suspense
โ Client and server routing
โ 100% incrementally adoptable
https://t.co/jvaVOmyB8A