Tag

polyfill

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Aug 22, 2024 · Frontend Development

Can the New ?= Operator Eliminate Try‑Catch in JavaScript?

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.

Async/AwaitECMAScript ProposalJavaScript
0 likes · 6 min read
Can the New ?= Operator Eliminate Try‑Catch in JavaScript?
Code Mala Tang
Code Mala Tang
Jun 28, 2024 · Information Security

What Happened When a Polyfill CDN Was Hijacked? Lessons for Secure Web Development

A June 2024 security breach compromised a popular JavaScript polyfill CDN, injecting malicious code that redirected over 100,000 sites, prompting warnings from Google and GitHub and highlighting best practices for protecting web applications from CDN‑based supply‑chain attacks.

CDNSupply chain attackWeb Security
0 likes · 6 min read
What Happened When a Polyfill CDN Was Hijacked? Lessons for Secure Web Development
HelloTech
HelloTech
May 16, 2024 · Frontend Development

Vite Legacy Plugin for Browser Compatibility

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 CompatibilityFrontend Developmentlegacy
0 likes · 5 min read
Vite Legacy Plugin for Browser Compatibility
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 15, 2022 · Frontend Development

Understanding requestAnimationFrame: Usage, Timing, Performance, and Compatibility

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.

JavaScriptPerformancebrowser
0 likes · 11 min read
Understanding requestAnimationFrame: Usage, Timing, Performance, and Compatibility
Sohu Tech Products
Sohu Tech Products
Sep 28, 2022 · Fundamentals

New ECMAScript 2023 Array Proposals: Non‑Destructive Methods, Grouping, Find‑From‑Last, and fromAsync

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 MethodsECMAScriptGrouping
0 likes · 14 min read
New ECMAScript 2023 Array Proposals: Non‑Destructive Methods, Grouping, Find‑From‑Last, and fromAsync
DaTaobao Tech
DaTaobao Tech
Sep 20, 2022 · Frontend Development

Understanding Intersection Observer API and Its Polyfill Implementation

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.

IntersectionObserverJavaScriptPerformance
0 likes · 16 min read
Understanding Intersection Observer API and Its Polyfill Implementation
IT Services Circle
IT Services Circle
Apr 20, 2022 · Frontend Development

New Non‑Destructive Array Methods in JavaScript: toReversed, toSorted, toSpliced, and with

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
New Non‑Destructive Array Methods in JavaScript: toReversed, toSorted, toSpliced, and with
ByteFE
ByteFE
Apr 7, 2021 · Frontend Development

Promise‑Based JavaScript Animation Library: Design and Implementation

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
Promise‑Based JavaScript Animation Library: Design and Implementation
ByteFE
ByteFE
Mar 30, 2021 · Frontend Development

Understanding Babel: Core Functions, AST, Polyfills, and Presets

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.

ASTBabelCore-js
0 likes · 13 min read
Understanding Babel: Core Functions, AST, Polyfills, and Presets
政采云技术
政采云技术
Mar 9, 2021 · Frontend Development

Dealing with Internet Explorer Compatibility: Common Issues and Practical Solutions

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 CompatibilityJavaScript
0 likes · 16 min read
Dealing with Internet Explorer Compatibility: Common Issues and Practical Solutions
Yuewen Frontend Team
Yuewen Frontend Team
Nov 16, 2020 · Frontend Development

Build a Lightweight Carousel with CSS Scroll‑Snap and Minimal JavaScript

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.

CSSJavaScriptcarousel
0 likes · 7 min read
Build a Lightweight Carousel with CSS Scroll‑Snap and Minimal JavaScript
vivo Internet Technology
vivo Internet Technology
Jul 15, 2020 · Frontend Development

Babel: JavaScript Compiler – History, Usage, and Advanced Configuration

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.

BabelCLIES6
0 likes · 21 min read
Babel: JavaScript Compiler – History, Usage, and Advanced Configuration
政采云技术
政采云技术
Mar 1, 2020 · Frontend Development

Understanding Babel: Core Principles, Configuration, Plugins, and Polyfills for Frontend Development

This comprehensive guide explores the core principles and practical applications of Babel, a JavaScript compiler essential for modern frontend development, detailing its AST-based transformation process, configuration methods, plugin and preset ecosystems, polyfill strategies, and runtime optimization techniques to ensure cross-browser compatibility and efficient code compilation.

ASTBabelCode Transformation
0 likes · 17 min read
Understanding Babel: Core Principles, Configuration, Plugins, and Polyfills for Frontend Development
Tencent Cloud Developer
Tencent Cloud Developer
Nov 29, 2019 · Frontend Development

How to Adapt a JavaScript SDK for IE9, IE8, and IE7 Compatibility

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
How to Adapt a JavaScript SDK for IE9, IE8, and IE7 Compatibility
58 Tech
58 Tech
Jul 18, 2018 · Frontend Development

Frontend Architecture of 58 MicroChat: Multi‑Platform Design and Implementation

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.

ArchitectureMessagingcross‑platform
0 likes · 12 min read
Frontend Architecture of 58 MicroChat: Multi‑Platform Design and Implementation