DEV Community

Cover image for Episode 24/17: Ionic 8, JsAction
ng-news for This is Angular

Posted on

Episode 24/17: Ionic 8, JsAction

Ionic had its version 8 release, and JSAction, a library to catch DOM events until hydration finishes, will become part of Angular.

Ionic 8

Ionic is the most popular toolkit for creating cross-platform applications in Angular, including web and mobile apps. Its components change their design depending on the platform, making the apps look like native ones.

Ionic has been available in version 8 since mid-April. According to the release notes, the major changes focused on improving accessibility.

We have a high contrast theme, better integration of light and dark color palettes, and further features.

For more details, consult the official blog.

Ionic 8 is here! - Ionic Blog

What’s new in ionic 8? Enhancements to theming, accessibility, revised iOS designs, a new Picker experience, and more.

favicon ionic.io

JSAction

Towards progressive hydration, we've learned that Angular 18 will include another piece of the puzzle. Currently, there is a period between the display of the static page coming from SSR and when Angular is loaded and adds all its event listeners.

It is not handled if the loading is too slow and the user dispatches a DOM event. In the old version of SSR, namely nguniversal, we had a library called preboot, which was responsible for that.

The new version will use a library called JSAction, which catches and holds the DOM events until Angular is ready. JSAction also runs on Google's search and has proven its quality over many years.

With JSAction in place, it will be possible to run deferred views on the server first and only hydrate them once the user starts to interact with them, i.e., dispatching DOM events.

For more information, head to the article published by Jatin Ramanathan and Tom Wilkinson on the Angular Blog

DOM Attributes and Properties

Jake Archibald published an article explaining the difference between HTML attributes and properties. It may not be something we require daily, but it is good to hear about these things, and relatively easy to read.

Top comments (0)