Tagged articles
Polyfill
21 articles · Page 1 of 1
JavaScript’s upcoming safe‑assignment operator ( ?= ) lets developers handle errors without traditional try‑catch blocks, reducing nesting, improving readability, and enabling seamless integration with async/await, Symbol.result, and recursive error handling, as demonstrated through multiple code examples and a polyfill link.
Async/AwaitJavaScriptPolyfill
0 likes · 5 min read

An upcoming ECMAScript proposal introduces the safe assignment operator ?=, which returns a [error, result] tuple to streamline error handling, reduce try‑catch nesting, support custom Symbol.result, work with async/await, and can be polyfilled for older browsers.
ECMAScript ProposalPolyfillSafe Assignment Operator
0 likes · 6 min read

When a new ChatGPT web release triggers a "Oops, an error occurred! (Try again)" message on older browsers, the article explains how the missing Array.prototype.toSorted() method causes the failure and guides readers through creating a Tampermonkey user script that injects a polyfill to restore functionality.
ChatGPTJavaScriptPolyfill
0 likes · 11 min read

The Vite Legacy Plugin adds browser compatibility to Vite projects by using Babel to transpile modern JavaScript, generating polyfill chunks, and offering configurable target browsers, while allowing developers to control whether legacy or modern bundles are produced through dedicated config, generation, and post‑build plugins.
Browser CompatibilityPolyfillVite
0 likes · 5 min read


ByteFEFeb 15, 2023 · Frontend Development
This article provides a detailed overview of Babel, covering its definition, history, installation, configuration, core compilation phases, plugin and preset mechanisms, polyfill handling, and a step‑by‑step example of creating a custom try‑catch plugin for JavaScript code transformation.
ASTBabelCompiler
0 likes · 16 min read

This article examines why bundle size matters for front‑end performance and provides a step‑by‑step guide to reducing Webpack output by optimizing Babel polyfills, leveraging @babel/preset‑env, using @babel/runtime, applying tree‑shaking, and eliminating duplicate dependencies.
BabelFrontend OptimizationPolyfill
0 likes · 12 min read

This article explains the requestAnimationFrame API, demonstrates basic and cancelable animation examples, discusses its execution timing within the browser frame lifecycle, compares its performance to setTimeout, covers compatibility and polyfills, and shows how to wrap it in a React hook for practical use.
JavaScriptPolyfillReact
0 likes · 11 min read

The article explains the upcoming ECMAScript 2023 proposals—including non‑destructive array methods (toReversed, toSorted, toSpliced, with), array grouping (group, groupToMap), reverse‑search methods (findLast, findLastIndex), and the asynchronous constructor Array.fromAsync—detailing their stages, usage examples, polyfills, and type signatures for modern JavaScript development.
Array MethodsECMAScriptJavaScript proposals
0 likes · 14 min read

This article introduces the Stage‑3 ECMAScript proposal Array.fromAsync, explains why it’s needed for async iterables, shows its usage with async, sync, and array‑like inputs, provides real‑world examples, and offers a polyfill implementation for current environments.
Array.fromAsyncJavaScriptPolyfill
0 likes · 9 min read

The article explains how the Intersection Observer API offloads visibility detection from scroll events to improve performance, details its creation, options, callback structure, and entry data, and describes a polyfill that mimics native behavior using event listeners, mutation observers, and geometric calculations for broader browser support.
IntersectionObserverJavaScriptPolyfill
0 likes · 16 min read

JavaScript’s upcoming “Change Array by copy” proposal introduces four non‑destructive array methods—.toReversed(), .toSorted(), .toSpliced(), and .with()—which provide immutable alternatives to existing destructive methods, and the article explains their behavior, usage examples, and polyfills while the proposal is in stage 3.
ECMAScriptJavaScriptNonDestructive
0 likes · 6 min read

This article explains why Babel 6 and Babel 7 produce typical errors such as "regeneratorRuntime is not defined" and "Cannot find module 'core-js/library/fn/**'", then walks through the roles of @babel/preset‑env, @babel/plugin‑transform‑runtime, core‑js versions, useBuiltIns options, and provides concrete configuration examples for both application and library projects.
BabelPolyfillcore-js
0 likes · 14 min read


ByteFEApr 7, 2021 · Frontend Development
This article introduces a Promise‑based JavaScript animation library, explains how to create sequential animations using async/await, provides polyfills for requestAnimationFrame and es6‑promise, details the Animator class implementation, and demonstrates usage with code examples and easing extensions.
AnimatorAsync/AwaitJavaScript
0 likes · 11 min read


ByteFEMar 30, 2021 · Frontend Development
This article explains Babel's role as a fundamental JavaScript compiler, detailing its parsing‑transform‑printing pipeline, AST structure, core‑js polyfills, preset‑env configuration, and runtime helpers, providing frontend developers with a comprehensive guide to mastering Babel's ecosystem and optimizing bundle size.
ASTFrontend DevelopmentJavaScript
0 likes · 13 min read


政采云技术Mar 9, 2021 · Frontend Development
This article shares practical techniques for handling IE9‑plus compatibility, covering environment simulation, image distortion, 8‑bit color values, mirroring, Flex fallback, CSS hacks, history routing limitations, and ES6 polyfills, along with code examples and migration advice.
CSS hacksIE compatibilityPolyfill
0 likes · 16 min read

This article demonstrates how to replace heavy swiper libraries with a slim, pure‑CSS carousel using scroll‑snap‑type, scroll‑snap‑align, and scroll‑behavior, and adds a small JavaScript polyfill for smooth scrolling and automatic slide rotation, complete with npm packaging and compatibility notes.
CSSCarouselJavaScript
0 likes · 7 min read

Babel, originally 6to5, is a JavaScript compiler that transforms modern ES6+ code into browser‑compatible JavaScript using a parser, plugins, and presets like @babel/preset‑env, with configurable polyfill strategies and runtime helpers, enabling developers to target older environments via a simple CLI workflow.
BabelES6Polyfill
0 likes · 21 min read

The imprisonment of core‑js author Denis Pushkarev raises concerns for the library’s future maintenance, affecting over 19,000 npm packages—including major polyfills—while the community seeks new maintainers and proposes organizational safeguards to protect critical open‑source dependencies.
Polyfillcore-jsnpm
0 likes · 3 min read

The guide shows how to modify a Webpack‑4 JavaScript SDK—adding Babel symbol handling, using transform‑runtime, employing Flash for IE9 cross‑domain requests, converting ES5 to ES3 with es3ify‑loader, configuring UglifyJs for IE8, polyfilling missing APIs, building a tiny selector engine, and testing on virtual IE7‑IE9 machines.
BabelIE compatibilityJavaScript
0 likes · 21 min read


58 TechJul 18, 2018 · Frontend Development
The article describes the layered front‑end architecture of 58 MicroChat, covering its network, SDK, UI, integration, storage, security, polyfill, and quality‑monitoring modules, as well as the message center design, cross‑platform compatibility strategies, and ongoing quality‑monitoring practices.
PolyfillQuality Monitoringarchitecture
0 likes · 12 min read

Explore the CSS conic-gradient function in depth—its syntax, differences from linear and radial gradients, practical examples like color wheels, pie charts, animated backgrounds, and polyfill support—while learning how to combine percentages, background-size, and blend modes to create dynamic, cross-browser visual designs.
CSSPolyfillanimation
0 likes · 10 min read
