WeChatFE
Author

WeChatFE

Tencent WeChat Public Platform Frontend Team

15
Articles
0
Likes
10
Views
0
Comments
Recent Articles

Latest from WeChatFE

15 recent articles
WeChatFE
WeChatFE
Jun 15, 2022 · Frontend Development

How to Render Rounded Rectangles in WebGL Using Signed Distance Fields

This article explains how to use WebGL shaders and signed distance functions to draw rectangles and rounded rectangles, covering basic shader setup, SDF formulas for circles, boxes, and rounded boxes, and applying antialiasing techniques to achieve smooth edges for dynamic UI cards.

AntialiasingRounded RectangleShader
0 likes · 16 min read
How to Render Rounded Rectangles in WebGL Using Signed Distance Fields
WeChatFE
WeChatFE
Mar 22, 2022 · Frontend Development

Why Vite Builds Blank on iOS 11 and How to Fix It with esbuild Target Settings

After upgrading a project to Vite, users on iOS 11 experienced blank pages due to compatibility issues caused by esbuild’s minification generating modern syntax; the article explains the root cause, examines legacy plugin settings, and shows how explicitly setting esbuild.target to 'es6' (or using terser) resolves the problem.

Frontend BuildViteesbuild
0 likes · 8 min read
Why Vite Builds Blank on iOS 11 and How to Fix It with esbuild Target Settings
WeChatFE
WeChatFE
Dec 10, 2021 · Fundamentals

How a Simple DSL Lets Non‑Developers Build Complex Surveys

This article explains the concept of domain‑specific languages (DSLs), compares internal and external DSLs, shows how to design a survey‑specific DSL with PEG.js, and discusses when using a DSL is worthwhile versus relying on existing tools.

DSLPEG.jsdomain-specific-language
0 likes · 10 min read
How a Simple DSL Lets Non‑Developers Build Complex Surveys
WeChatFE
WeChatFE
Jun 17, 2021 · Frontend Development

How Vue 3’s Proxy‑Based Reactivity Beats Vue 2’s Object.defineProperty

This article explains Vue’s reactive system, compares Vue 2.6’s Object.defineProperty approach with Vue 3’s Proxy implementation, details how observers are defined, collected, and triggered, and shows why the asynchronous update queue improves performance and maintainability.

JavaScriptProxyReactivity
0 likes · 16 min read
How Vue 3’s Proxy‑Based Reactivity Beats Vue 2’s Object.defineProperty
WeChatFE
WeChatFE
Jun 19, 2020 · Frontend Development

Mastering Dark Mode for WeChat Articles: Techniques, Algorithms & Performance

This article explores how to implement Dark Mode in WeChat public platform articles, covering detection methods, challenges of custom inline styles, comparative algorithms from Chrome and Outlook, a custom color‑processing solution, and performance optimizations for first‑screen rendering.

Dark Modecolor algorithmperformance
0 likes · 16 min read
Mastering Dark Mode for WeChat Articles: Techniques, Algorithms & Performance
WeChatFE
WeChatFE
Feb 13, 2017 · Frontend Development

How to Eliminate Front‑End Image Layout Shift with Smart Placeholder Optimization

By inlining placeholder logic, triggering it at DOMContentLoaded, and calculating placeholder dimensions based on the nearest non‑zero‑width ancestor rather than screen width, this guide shows how to prevent first‑screen layout shifts caused by image loading in modern web front‑end development.

Browser Renderingimage placeholderlayout shift
0 likes · 9 min read
How to Eliminate Front‑End Image Layout Shift with Smart Placeholder Optimization
WeChatFE
WeChatFE
Oct 9, 2016 · Frontend Development

Mastering JavaScript Function Composition: From Simple to Multi-Function Compose

This article explains how to build and use compose functions in JavaScript—including two‑argument, variadic, and prototype‑based versions—demonstrates practical examples, and highlights the benefits of pure functions and functional composition for modular, testable frontend code.

CurryingJavaScriptPure Functions
0 likes · 5 min read
Mastering JavaScript Function Composition: From Simple to Multi-Function Compose
WeChatFE
WeChatFE
Jul 29, 2016 · Fundamentals

Master JavaScript Currying: Boost Code Quality with Functional Design

This article explains what currying is, its advantages, and provides a generic JavaScript currying function, demonstrating how to transform multi‑parameter functions into single‑parameter chains to improve code reuse, enable lazy evaluation, and enhance overall code quality in functional programming.

JavaScriptLazy Evaluationcode-reuse
0 likes · 10 min read
Master JavaScript Currying: Boost Code Quality with Functional Design