Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

What's New in Javascript

Scott and West talk about what’s new in JavaScript. Fluent Conf - Sponsor Developers, software engineers, designers, and web performance professionals flock to Fluent in pursuit of a common goal: building a better web. That means delivering fast, secure, accessible experiences to users and customers

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: Wes Bos and Scott Tolinski survey emerging JavaScript libraries and browser APIs, focusing on practical uses, limitations, and browser support. They cover animation, visibility and resizing observers, Markdown/JSX, face and speech recognition, secure payments, internationalized number formatting, BigInt, and the slow adoption of ES modules in Node. They also share conference, hosting, coding-font, and home-automation recommendations.

Main Topics: Animation libraries and browser APIs: The hosts discuss Popmotion Pose for state-based animations, including mount and unmount transitions and FLIP techniques, as well as the native Web Animations API. They note that browser support for the latter is uneven and recommend using a polyfill when needed. Intersection Observer and Resize Observer: Intersection Observer can detect when elements enter or leave the viewport without repeatedly calculating positions during scroll events. Resize Observer tracks changes to an element's dimensions, enabling component-based responsive behavior rather than relying only on viewport width. Extending Markdown with MDX: MDX lets developers include JSX components directly in Markdown, enabling reusable interactive elements such as charts, videos, or compatibility tables in documentation and blog posts. At the time discussed, it was a Webpack loader, with Parcel integration being considered. Payments, localization, and large numbers: The Payment Request API aims to simplify checkout and reduce direct handling of card data, potentially using payment tokens. The hosts also highlight Intl number formatting for locale-aware currency display and BigInt for accurate operations on very large integers. Experimental media and speech capabilities: The speakers demonstrate face detection for identifying facial landmarks and describe speech recognition and text-to-speech APIs. They emphasize these APIs' potential for creative projects while acknowledging experimental status and variation in browser, operating-system, and accent support. ES modules in Node.js: ES modules were still being developed for Node and available behind a flag, with the .mjs extension used to distinguish module files. The hosts explain that module parsing requirements complicate compatibility and point to the ESM package as an interim option. Recommendations and personal projects: The episode includes a Fluent Conference promotion and a Netlify sponsorship, plus recommendations for the Dank Mono coding font and Ring Pro doorbell. The hosts also discuss Scott's planned sound-isolated studio and their interest in home automation.

Key Arguments: Browser-provided observers can be more efficient and reliable than repeated JavaScript polling or scroll and resize handlers because the browser can track element visibility and dimensions directly. Responsive interfaces should increasingly respond to the size of individual components, not just the viewport; Resize Observer is a useful interim tool while developers await native CSS element queries. The Payment Request API could improve checkout security by letting payment providers create tokens so merchants need not handle raw card details, although basic autofill-style behavior is a less secure intermediate use. Intl number formatting is preferable to hand-written regular expressions or copied formatting snippets for displaying currency according to locale conventions. Node's ES module support is taking time because its behavior must be specified carefully; developers should follow the standards process rather than relying only on complaints about the .mjs extension. New and experimental APIs can still be valuable for learning and prototyping, but developers should check compatibility and use polyfills or fallbacks where appropriate.

Data Points: New APIs and libraries planned for discussion: About 10 - The hosts describe the episode as a survey of roughly ten new JavaScript-related tools and APIs. Intersection Observer visibility threshold example: 0.5 - A threshold of 0.5 is given as an example for detecting when half of a video element is visible. Fluent Conference dates: June 11–14 - The conference is described as taking place in San Jose, with training, tutorials, and conference sessions. Fluent Conference discount: 20% - Listeners are offered a discount with the code SYNTAX. Payment token example: $40 - The hosts explain tokenized payments using a hypothetical token authorized for a $40 charge. Text-to-speech voices: About 60 on Chrome for Mac; 3–4 on some other setups - The number of available voices is described as depending on operating-system support. Dank Mono price: About £40, or roughly $55 at the time - The hosts compare its cost with Operator Mono, which they describe as costing about $200. Ring Pro video resolution: 1080p - Wes says the doorbell's video is crisp and identifies its resolution as 1080p.

Pivotal Quotes: "Who knows better than the browser what elements are actually on the page?" — Wes Bos: Explaining why Intersection Observer can be more efficient than manual scroll-event calculations. "You as a web developer never have to touch credit card data." — Wes Bos: Describing the security benefit of payment tokens and payment-provider integrations. "If you have thoughts on this, make sure that you actually put in your two cents." — Wes Bos: Encouraging developers to participate in the Node.js ES modules discussion rather than only complain after decisions are made.

Implications: Developers can improve performance, accessibility, security, and localization by adopting browser-native capabilities where supported. Because several tools remain experimental or inconsistent across browsers, compatibility checks, polyfills, and informed participation in standards discussions remain essential.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats