Tagged articles

JavaScript

2446 articles · Page 24 of 25
Aotu Lab
Aotu Lab
Oct 10, 2016 · Frontend Development

How to Implement 3D Touch Interactions in Safari 10 with JavaScript

This guide explains the evolution of Apple’s Force Touch to 3D Touch, lists supported iPhone models, describes Quick Actions and Peek‑and‑Pop interactions, and provides step‑by‑step code for detecting touch pressure in Safari 10 using Touch.force and the touchforcechange event.

3D TouchFrontendJavaScript
0 likes · 9 min read
How to Implement 3D Touch Interactions in Safari 10 with JavaScript
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
JavaScript
JavaScript
Oct 5, 2016 · Frontend Development

Mastering JavaScript Timers: setTimeout, setInterval, and Their Pitfalls

Learn how JavaScript’s setTimeout and setInterval functions work, see practical code examples, understand their timing inaccuracies and common pitfalls, and discover how recursive setTimeout can provide more reliable scheduling by avoiding overlapping executions.

FrontendJavaScriptTimers
0 likes · 4 min read
Mastering JavaScript Timers: setTimeout, setInterval, and Their Pitfalls
JavaScript
JavaScript
Oct 2, 2016 · Frontend Development

Essential JavaScript DOM API Cheat Sheet: From Element Selection to Ajax

This article provides a comprehensive, English‑language reference of common JavaScript DOM APIs—including element selection, class manipulation, node operations, attribute handling, content updates, CSS styling, size calculations, event binding, DOM ready detection, context binding, whitespace trimming, Ajax requests, JSON parsing, and node traversal—complete with code examples for each feature.

DOMJavaScriptWeb Development
0 likes · 11 min read
Essential JavaScript DOM API Cheat Sheet: From Element Selection to Ajax
Java High-Performance Architecture
Java High-Performance Architecture
Sep 28, 2016 · Frontend Development

Master the Architecture of WeChat Mini Programs: A Quick Guide

This article provides a concise overview of WeChat Mini Program development, detailing the project’s directory structure, file types (js, wxml, wxss, json), core logic layer, data binding, API usage, modularization, and view components with practical code examples to help newcomers quickly grasp the overall design.

JavaScriptMiniProgramWXML
0 likes · 7 min read
Master the Architecture of WeChat Mini Programs: A Quick Guide
Node Underground
Node Underground
Sep 28, 2016 · Backend Development

What’s Next for Node.js? Inside the Upcoming v7 Roadmap and Features

The article reviews the Node.js Interactive Europe presentation, outlining Node.js v7’s planned V8 upgrade, new language features like async/await, a beta release strategy, ecosystem stability tools, web standard adoption, IoT suitability, VM neutrality, and community inclusivity initiatives.

Backend DevelopmentIoTJavaScript
0 likes · 6 min read
What’s Next for Node.js? Inside the Upcoming v7 Roadmap and Features
Node Underground
Node Underground
Sep 26, 2016 · Frontend Development

What’s New in TypeScript 2.0? Key Features You Need to Know

Microsoft released TypeScript 2.0 on the 22nd of this month, introducing non‑nullable types, control‑flow based type analysis, simpler module declarations, and read‑only properties, while also integrating ES2015 features, modules, decorators, and tighter Angular collaboration, and can be installed via npm.

FrontendJavaScriptTypeScript
0 likes · 2 min read
What’s New in TypeScript 2.0? Key Features You Need to Know
CSS Magic
CSS Magic
Sep 25, 2016 · Frontend Development

Front‑End Q&A: Class Naming, Checkbox Labels, Build Tools, Learning Resources

This article answers common front‑end questions, covering clear class‑naming practices, how to associate labels with form controls, why Gulp and Webpack are preferred over FIS, recommended JavaScript and mobile‑web books, CSS framework trade‑offs, and career advice for beginners.

Build ToolsCareerFrontend
0 likes · 9 min read
Front‑End Q&A: Class Naming, Checkbox Labels, Build Tools, Learning Resources
Node Underground
Node Underground
Sep 14, 2016 · Backend Development

Add Vibrant Colors to Your Node CLI Tools with ANSI Escape Codes

Learn how to use ANSI escape codes in Node.js to transform dull black‑and‑white terminal output into colorful, readable command‑line interfaces, with simple examples like printing red text, enabling developers to create more engaging CLI tools.

ANSI escape codesCLIJavaScript
0 likes · 1 min read
Add Vibrant Colors to Your Node CLI Tools with ANSI Escape Codes
Tencent Music Tech Team
Tencent Music Tech Team
Sep 14, 2016 · Frontend Development

Introduction to Electron: Building Cross‑Platform Desktop Applications with JavaScript

This tutorial introduces Electron, the Chromium‑Node.js framework for building cross‑platform desktop apps with HTML, CSS and JavaScript, walks through a simple “Hello World” project, explains its main and renderer processes, key modules such as IPC, remote and webview, and shows how to package the app for Windows and macOS.

Desktop ApplicationElectronIPC
0 likes · 11 min read
Introduction to Electron: Building Cross‑Platform Desktop Applications with JavaScript
Node Underground
Node Underground
Sep 7, 2016 · Fundamentals

3 Proven Bluebird Promise Performance Hacks Every JavaScript Developer Should Know

This article highlights three of the most valuable performance optimization techniques used in the widely adopted Bluebird Promise library—minimizing function object allocation, reducing object size, and employing lazy‑overwritten no‑op functions—to help developers write faster, more efficient JavaScript code.

BluebirdJavaScriptOptimization
0 likes · 2 min read
3 Proven Bluebird Promise Performance Hacks Every JavaScript Developer Should Know
Tencent TDS Service
Tencent TDS Service
Sep 1, 2016 · Frontend Development

Unlock WebVR: Build Immersive VR Experiences Directly in the Browser

This article introduces WebVR, an experimental JavaScript API that enables VR experiences on the web, walks through setting up a three.js‑based boilerplate, explains key files like VRControls.js, VREffect.js, and webvr‑polyfill.js, and shows how to create a simple rotating cube demo for mobile cardboard viewers.

JavaScriptVRWebVR
0 likes · 9 min read
Unlock WebVR: Build Immersive VR Experiences Directly in the Browser
Aotu Lab
Aotu Lab
Sep 1, 2016 · Frontend Development

Master SeaJS: Complete CMD Module Guide and Compare with RequireJS

This article provides a comprehensive guide to SeaJS, covering its CMD‑based module definition, the define syntax, factory parameters, module identifiers, startup process, debugging tools, loading flow, and key differences from RequireJS, with practical code examples and reference links.

CMDJavaScriptRequireJS
0 likes · 13 min read
Master SeaJS: Complete CMD Module Guide and Compare with RequireJS
Node Underground
Node Underground
Aug 30, 2016 · Backend Development

Avoid Common Node.js Pitfalls: DecodeURIComponent, Promises, and HTTP Errors

This article shares real‑world Node.js pitfalls—from unsafe decodeURIComponent usage and hidden Promise errors to unhandled HTTP request failures—explaining why they occur and providing practical code‑level solutions such as try‑catch wrappers and proper error event handling to keep applications stable.

BackendError handlingHTTP
0 likes · 4 min read
Avoid Common Node.js Pitfalls: DecodeURIComponent, Promises, and HTTP Errors
Node Underground
Node Underground
Aug 22, 2016 · Frontend Development

Mastering ES2015 Arrow Functions: Simplify Your JavaScript Code

This article introduces ES2015 arrow functions, showing their concise syntax, how they differ from traditional function expressions, the implicit handling of the this context, and practical examples that eliminate the need for manual this binding, helping developers write cleaner JavaScript.

Arrow FunctionsES2015JavaScript
0 likes · 2 min read
Mastering ES2015 Arrow Functions: Simplify Your JavaScript Code
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 11, 2016 · Frontend Development

Master JavaScript Test Cases: TDD, BDD, Mocha, Should, Nock, Istanbul

This guide explains why test cases are essential, compares TDD and BDD agile approaches, and introduces key frontend testing tools—including Mocha for test suites, Should for assertions, Nock for HTTP mocking, and Istanbul for coverage—while providing code examples and best‑practice recommendations for writing maintainable, high‑quality tests.

BDDJavaScriptTDD
0 likes · 8 min read
Master JavaScript Test Cases: TDD, BDD, Mocha, Should, Nock, Istanbul
Aotu Lab
Aotu Lab
Aug 10, 2016 · Backend Development

Master Node.js CLI Development with Commander, Inquirer, and Chalk

This guide walks you through setting up a Node.js project and using the commander, inquirer, and chalk packages to build, configure, and style powerful command‑line tools, including global installation, custom help, interactive prompts, and colored output.

CLICommand LineCommander
0 likes · 12 min read
Master Node.js CLI Development with Commander, Inquirer, and Chalk
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 5, 2016 · Frontend Development

Mastering JavaScript Promises: Common Pitfalls and Best Practices

This article explains the fundamentals of JavaScript Promises, illustrates typical mistakes such as callback pyramids and missing returns, and demonstrates proper usage of chaining, Promise.all, resolve variations, error handling with catch, and state propagation to write clean, maintainable asynchronous code.

Error handlingJavaScriptPromise
0 likes · 23 min read
Mastering JavaScript Promises: Common Pitfalls and Best Practices
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.

Code ReuseFunctional ProgrammingJavaScript
0 likes · 10 min read
Master JavaScript Currying: Boost Code Quality with Functional Design
Tencent Music Tech Team
Tencent Music Tech Team
Jul 29, 2016 · Frontend Development

Advanced Webpack Configuration Techniques and Tips

The article presents advanced Webpack configuration strategies—including programmatic Node‑API builds, streamlined loader setups, global module injection and environment definitions, commons chunk extraction, DLL bundling, on‑demand code splitting, UglifyJS minification, and server‑side bundling—to help developers efficiently manage complex projects.

Build ToolsCode SplittingJavaScript
0 likes · 12 min read
Advanced Webpack Configuration Techniques and Tips
ITPUB
ITPUB
Jul 8, 2016 · Frontend Development

Spice Up Your Report Pages with a Live Weather Widget in Three Simple Steps

This short tutorial explains how to enhance boring report pages by embedding a free weather forecast widget using an iframe and JavaScript, covering provider selection, code insertion, and integration with FineReport, plus tips for sizing and transparency.

FineReportFrontendJavaScript
0 likes · 3 min read
Spice Up Your Report Pages with a Live Weather Widget in Three Simple Steps
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jul 5, 2016 · Frontend Development

Master JavaScript Function Throttling: Boost Performance & Prevent Overloads

This article explains what JavaScript function throttling is, why it improves performance for high‑frequency events like scroll or resize, and provides step‑by‑step code examples—including basic and advanced implementations—to control execution timing and avoid excessive DOM or network calls.

JavaScriptPerformance optimizationevent handling
0 likes · 5 min read
Master JavaScript Function Throttling: Boost Performance & Prevent Overloads
Architecture Digest
Architecture Digest
Jun 26, 2016 · Frontend Development

Common Front-End Interview Questions on HTML, CSS, and JavaScript

The article presents a curated list of front‑end interview questions spanning HTML, CSS, JavaScript, and related topics, offering concise prompts on standards, browser behavior, performance, security, and development practices for candidates and interviewers alike.

HTMLJavaScriptcss
0 likes · 22 min read
Common Front-End Interview Questions on HTML, CSS, and JavaScript
CSS Magic
CSS Magic
Jun 21, 2016 · Frontend Development

The Definitive Gulp 4 Beginner’s Guide (Translation)

This comprehensive guide introduces Gulp 4, compares it with Grunt, explains its Node.js requirements, walks through installing the development version, details the core API and common plugins, and provides complete example gulpfile scripts for tasks such as building, watching, live‑reloading, and serving static files.

Build ToolsFrontendJavaScript
0 likes · 28 min read
The Definitive Gulp 4 Beginner’s Guide (Translation)
Java High-Performance Architecture
Java High-Performance Architecture
Jun 16, 2016 · Frontend Development

Unlock Powerful Data Visualizations with G2: A JavaScript Library Tutorial

This article introduces G2, an open‑source JavaScript visualization library from Ant Financial, explains its semantic charting capabilities and flexible graphic grammar, and provides a complete HTML example that creates a bar chart from sample data, guiding developers to quickly build custom visualizations.

Data VisualizationG2JavaScript
0 likes · 3 min read
Unlock Powerful Data Visualizations with G2: A JavaScript Library Tutorial
MaGe Linux Operations
MaGe Linux Operations
Jun 15, 2016 · Fundamentals

Understanding HTTP Cookies: Origins, Creation, and Best Practices

This article explains what HTTP cookies are, their historical origin, how they are created and managed via Set-Cookie headers, the meaning of options like expires, domain, path, and secure, as well as JavaScript handling, subcookies, HTTP‑Only flags, and common limitations.

HTTPJavaScriptSession
0 likes · 17 min read
Understanding HTTP Cookies: Origins, Creation, and Best Practices
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
May 28, 2016 · Backend Development

Extract All @Mentions from a Zhihu Page with Simple Scripts

This guide shows how to collect every @mentioned user on a Zhihu question page by using a JavaScript bookmarklet or a Python script, explains the extraction process, provides the necessary code snippets, and discusses why following programmers on Zhihu may not be the most effective learning method.

JavaScriptPythonWeb Scraping
0 likes · 6 min read
Extract All @Mentions from a Zhihu Page with Simple Scripts
Aotu Lab
Aotu Lab
May 20, 2016 · Frontend Development

How to Create Frame‑by‑Frame Animations with CSS3, JavaScript, and GIF

Frame‑by‑frame animation, also known as sprite animation, can be implemented on the web using three main techniques—GIF, JavaScript, and CSS3 animation—each with its own workflow, advantages, and limitations, and the article walks through practical examples, code snippets, and tips for optimal performance.

GIFJavaScriptframe-by-frame animation
0 likes · 8 min read
How to Create Frame‑by‑Frame Animations with CSS3, JavaScript, and GIF
Tencent Music Tech Team
Tencent Music Tech Team
May 12, 2016 · Mobile Development

Mastering JsBridge: Connecting JavaScript and Java in Android Apps

This article explains how Android hybrid apps enable JavaScript‑Java communication, compares four JS‑to‑Java methods, shows the single Java‑to‑JS approach, and provides a detailed walkthrough of the open‑source JsBridge library with code samples and workflow diagrams.

AndroidHybridAppJSBridge
0 likes · 11 min read
Mastering JsBridge: Connecting JavaScript and Java in Android Apps
21CTO
21CTO
May 7, 2016 · Frontend Development

Choosing the Right Front-End Framework: Trends, Comparisons & Future Outlook

This article reviews recent advances in front‑end development, compares popular frameworks such as AngularJS, EmberJS, ReactJS and VueJS, examines their evolution, discusses user and developer needs, and offers guidance on which technologies to invest in for the coming years.

AngularFrontendJavaScript
0 likes · 12 min read
Choosing the Right Front-End Framework: Trends, Comparisons & Future Outlook
Aotu Lab
Aotu Lab
Apr 29, 2016 · Frontend Development

Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases

This article explains the ES5 Array.prototype.reduce() method, compares it with forEach and map, details its syntax and parameters, provides step‑by‑step code examples—including handling of initial values and object arrays—and notes browser compatibility and library alternatives.

ArrayJavaScriptforeach
0 likes · 7 min read
Mastering JavaScript’s reduce(): From Basics to Advanced Use Cases
Aotu Lab
Aotu Lab
Apr 29, 2016 · Backend Development

How to Manually Build multipart/form-data Requests in JavaScript and Node.js

This guide explains the different form enctype types, dissects a multipart/form-data example, outlines the encoding rules, and provides step‑by‑step JavaScript and Node.js code for manually constructing and sending such requests, including handling of text fields and binary files.

FormDataJavaScriptNode.js
0 likes · 10 min read
How to Manually Build multipart/form-data Requests in JavaScript and Node.js
WeChatFE
WeChatFE
Apr 28, 2016 · Frontend Development

How to Use vConsole for Real-Time Mobile Web Debugging

This guide explains how to integrate the vConsole front‑end debugging panel into mobile web pages, showing how to view colored console logs, access system information, and conditionally load the tool for development environments.

JavaScriptfront-end loggingmobile debugging
0 likes · 6 min read
How to Use vConsole for Real-Time Mobile Web Debugging
WeChatFE
WeChatFE
Apr 25, 2016 · Frontend Development

Mastering UglifyJS: Advanced While, Conditional, Block, and IF Optimizations

This article continues the deep dive into UglifyJS compression, presenting advanced techniques for optimizing while loops, ternary conditional expressions, statement blocks, and IF branches, including rules for removing dead code, merging statements, and transforming structures to achieve maximal size reduction in JavaScript output.

JavaScriptUglifyJScode compression
0 likes · 7 min read
Mastering UglifyJS: Advanced While, Conditional, Block, and IF Optimizations
Qunar Tech Salon
Qunar Tech Salon
Apr 20, 2016 · Frontend Development

A Day in the Life of a Developer: Debugging IE7 JavaScript Issues

This article chronicles a developer’s detailed workday, documenting the discovery, analysis, and resolution of numerous JavaScript bugs in IE7, the communication with teammates, and the systematic debugging process that ultimately led to fixing a critical comma‑induced error in the code.

FrontendIE7JavaScript
0 likes · 11 min read
A Day in the Life of a Developer: Debugging IE7 JavaScript Issues
21CTO
21CTO
Apr 19, 2016 · Backend Development

Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide

This article walks through the fundamentals of creating a tiny template engine, explaining how templates are split into text, variables and blocks, how delimiters are parsed, how an abstract syntax tree is built, and how both Python and JavaScript can render the template using eval or Function constructors.

ASTJavaScriptPython
0 likes · 8 min read
Build Your Own Template Engine in Python and JavaScript – A Step‑by‑Step Guide
21CTO
21CTO
Apr 16, 2016 · Frontend Development

Front-End Best Practices: HTML5 Doctype, Semantic Markup & JS Performance

This guide covers essential front‑end techniques—from using the HTML5 DOCTYPE and semantic markup to proper heading hierarchy, table usage, image alt text, microformats, jQuery UI, JavaScript style rules, loop optimizations, GUID generation, and feature detection with Modernizr—helping developers write cleaner, faster, and more accessible web code.

HTML5JavaScriptaccessibility
0 likes · 21 min read
Front-End Best Practices: HTML5 Doctype, Semantic Markup & JS Performance
Architecture Digest
Architecture Digest
Apr 16, 2016 · Frontend Development

Front‑End Development Guidelines: HTML5 Doctype, Semantic Markup, Accessibility, and JavaScript Best Practices

This article provides comprehensive front‑end development guidelines covering the proper HTML5 DOCTYPE, semantic markup, alt text, table usage, microformats, jQuery UI, consistent JavaScript style, performance optimizations, unique ID generation, feature detection, and readable code conventions.

Best PracticesFrontendHTML
0 likes · 19 min read
Front‑End Development Guidelines: HTML5 Doctype, Semantic Markup, Accessibility, and JavaScript Best Practices
21CTO
21CTO
Apr 16, 2016 · Frontend Development

Master JavaScript Closures in Minutes: Simple Demo and Real-World Uses

This article demystifies JavaScript closures by presenting a minimal demo, explaining how closures differ from regular functions, illustrating their role in memory management, and showcasing advanced patterns like immediately‑invoked function expressions for practical module creation.

ConceptJavaScriptclosure
0 likes · 7 min read
Master JavaScript Closures in Minutes: Simple Demo and Real-World Uses
Aotu Lab
Aotu Lab
Apr 15, 2016 · Backend Development

Master Excel File Handling in Node.js with js-xlsx and excel-export

This guide compares popular Node.js npm packages for Excel file handling, recommends using js‑xlsx for parsing and excel‑export for generation, and provides detailed installation steps, core concepts, code examples, and a complete workflow for reading, converting to JSON, and writing Excel files on both server and browser environments.

BackendExcelExcel Export
0 likes · 13 min read
Master Excel File Handling in Node.js with js-xlsx and excel-export
Aotu Lab
Aotu Lab
Apr 15, 2016 · Frontend Development

Master Clean JavaScript: Coding Style, Variables, Error Handling, and Design Patterns

This article provides a comprehensive guide to writing maintainable JavaScript, covering coding conventions, variable best practices, error handling techniques, object creation methods, prototype and module patterns, and practical examples to help developers build clean, modular, and loosely‑coupled code.

Design PatternsError handlingJavaScript
0 likes · 16 min read
Master Clean JavaScript: Coding Style, Variables, Error Handling, and Design Patterns
Tencent TDS Service
Tencent TDS Service
Apr 14, 2016 · Frontend Development

Build a Simple Canvas Particle Engine from Scratch

This tutorial walks you through creating a lightweight Canvas particle engine—including world, launcher, and grain components, physics forces, rendering loop, and core JavaScript modules—so you can experiment with interactive particle effects in web projects.

AnimationCanvasJavaScript
0 likes · 12 min read
Build a Simple Canvas Particle Engine from Scratch
Java High-Performance Architecture
Java High-Performance Architecture
Mar 23, 2016 · Frontend Development

Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring

This article introduces practical ES6 features such as template literals, multiline strings, default parameters, and destructuring assignment, demonstrates how they simplify code compared to ES5, and provides a step‑by‑step guide to using Babel with Gulp for seamless ES6‑to‑ES5 conversion.

BabelJavaScriptTemplate literals
0 likes · 4 min read
Boost Your JavaScript with ES6: Templates, Multiline Strings, Defaults, and Destructuring
Java High-Performance Architecture
Java High-Performance Architecture
Mar 21, 2016 · Frontend Development

Why WebAssembly Is Revolutionizing Front‑End Development

WebAssembly, now standardized by the four major browsers, lets developers write web apps in multiple languages with near‑native performance, overcoming JavaScript’s speed limits, and offers a compact binary format, sandboxed security, and a readable text format for debugging and learning.

FrontendJavaScriptPerformance
0 likes · 4 min read
Why WebAssembly Is Revolutionizing Front‑End Development
21CTO
21CTO
Mar 15, 2016 · Frontend Development

Inside jQuery: Closures, No‑new Instantiation & Chainable Magic

This article dissects jQuery’s source code, revealing its clear modular architecture, closure-based sandbox, innovative no‑new instantiation, extensive method overloads, extend mechanisms, chainable calls with stack tracking, regex optimizations, and conflict‑resolution strategies, offering developers deep insights into its design and performance.

Design PatternsJavaScriptclosure
0 likes · 16 min read
Inside jQuery: Closures, No‑new Instantiation & Chainable Magic
21CTO
21CTO
Mar 8, 2016 · Frontend Development

Master JavaScript Scope & Context: From Basics to Advanced Patterns

This article explains the fundamental differences between scope and context in JavaScript, covers variable scope, execution contexts, the scope chain, closures, module patterns, call/apply/bind methods, and ES6 arrow functions, providing clear code examples for each concept.

BINDContextExecutionContext
0 likes · 14 min read
Master JavaScript Scope & Context: From Basics to Advanced Patterns
Aotu Lab
Aotu Lab
Mar 2, 2016 · Frontend Development

Why Replace Gulp with npm Scripts? A Practical Front‑End Build Guide

This article explains the drawbacks of using Gulp or Grunt for front‑end automation, demonstrates how npm scripts can simplify tasks like cleaning the dist folder, and discusses common developer misconceptions while outlining both the benefits and limitations of npm scripts as a build tool.

Build ToolsFrontend BuildJavaScript
0 likes · 8 min read
Why Replace Gulp with npm Scripts? A Practical Front‑End Build Guide
Aotu Lab
Aotu Lab
Mar 2, 2016 · Frontend Development

Master CreateJS: PreloadJS, SoundJS, TweenJS & EaselJS Quick Guide

This tutorial walks through using CreateJS libraries—PreloadJS for asset loading, SoundJS for audio management, TweenJS for animation, and EaselJS for canvas rendering—providing code examples, configuration steps, and practical tips to build interactive HTML5 games.

CreateJSEaselJSHTML5 Canvas
0 likes · 11 min read
Master CreateJS: PreloadJS, SoundJS, TweenJS & EaselJS Quick Guide
CSS Magic
CSS Magic
Mar 2, 2016 · Frontend Development

Advanced Front‑End Journey: Mastering Click Event Binding

The article walks through a front‑end developer’s step‑by‑step evolution from simple onclick handlers to robust event delegation, data‑action attributes, and a reusable Action library, illustrating pitfalls, best practices, and real‑world integration with jQuery and CMUI.

FrontendJavaScriptclick event
0 likes · 14 min read
Advanced Front‑End Journey: Mastering Click Event Binding
ITPUB
ITPUB
Feb 22, 2016 · Frontend Development

How to Prevent Web Analytics Data Loss on Page Unload: From Blocking Ajax to Beacon API

This article examines why analytics requests often disappear when users leave a page, reviews traditional blocking tricks such as synchronous Ajax, busy‑wait loops, and image hacks, and then presents optimized approaches like URL or window.name transfer before recommending the modern Beacon API for reliable, non‑blocking data transmission.

AnalyticsFrontendJavaScript
0 likes · 8 min read
How to Prevent Web Analytics Data Loss on Page Unload: From Blocking Ajax to Beacon API
21CTO
21CTO
Feb 16, 2016 · Frontend Development

Why the JavaScript with Statement Is a Bad Idea: Performance Pitfalls and Hidden Bugs

This article explains the JavaScript with statement, its syntax and intended convenience, then details why it is discouraged by highlighting severe performance degradation, ambiguous scope resolution, debugging difficulties, and potential bugs illustrated through multiple code examples and analysis.

JavaScriptPerformancecode optimization
0 likes · 9 min read
Why the JavaScript with Statement Is a Bad Idea: Performance Pitfalls and Hidden Bugs
21CTO
21CTO
Feb 9, 2016 · Frontend Development

Why Using map Beats for Loops: Cleaner, Declarative JavaScript

This article explains how replacing traditional for‑loops with JavaScript’s map method leads to more declarative, readable code, reduces boilerplate, improves maintainability, and offers comparable performance, while also discussing functional programming principles, browser support, and best practices for naming helper functions.

Declarative programmingFunctional ProgrammingJavaScript
0 likes · 7 min read
Why Using map Beats for Loops: Cleaner, Declarative JavaScript
Java High-Performance Architecture
Java High-Performance Architecture
Feb 6, 2016 · Frontend Development

How Web Workers Unblock JavaScript: Solving the Single‑Threaded Bottleneck

This article explains why JavaScript’s single‑threaded nature can freeze the UI during heavy calculations like recursive Fibonacci, and demonstrates how using HTML5 Web Workers moves such tasks to background threads, keeping the interface responsive and allowing multiple workers for intensive operations.

JavaScriptWeb Workersasynchronous
0 likes · 3 min read
How Web Workers Unblock JavaScript: Solving the Single‑Threaded Bottleneck
21CTO
21CTO
Feb 2, 2016 · Frontend Development

10 Proven Ways to Reduce Reflows and Boost Web Performance

This article explains repaint and reflow concepts, lists common scenarios that trigger them, and provides practical frontend optimization techniques—including CSS simplification, DOM hierarchy reduction, batch updates, and developer‑tool analysis—to minimize layout thrashing and improve page speed.

DOM optimizationFrontendJavaScript
0 likes · 9 min read
10 Proven Ways to Reduce Reflows and Boost Web Performance
Java High-Performance Architecture
Java High-Performance Architecture
Feb 1, 2016 · Frontend Development

Is Switch Faster Than a Lookup Table in JavaScript? A 50,000-Iteration Test

After reading 'High-Performance JavaScript', I tested the speed of a switch statement versus a lookup table over 50,000 iterations, finding the switch slightly faster contrary to the book’s claim, and reflecting on the practical benefits of lookup tables such as clearer code and easier maintenance.

JavaScriptLookup Tablecode optimization
0 likes · 3 min read
Is Switch Faster Than a Lookup Table in JavaScript? A 50,000-Iteration Test
ITPUB
ITPUB
Jan 21, 2016 · Information Security

How a Tiny JavaScript Snippet Can Crash Major Browsers and Reboot iPhones

A JavaScript snippet shared on Twitter claims to crash Firefox, Chrome, and Safari browsers and even force an iPhone to restart, prompting security researchers to examine its behavior, potential as a 0‑day exploit, and possible misuse in attacks.

0dayJavaScriptbrowser exploit
0 likes · 3 min read
How a Tiny JavaScript Snippet Can Crash Major Browsers and Reboot iPhones
ITPUB
ITPUB
Jan 21, 2016 · Information Security

How a Tiny JavaScript Snippet Can Crash Browsers and Reboot iPhones

A JavaScript snippet shared on Twitter claims to crash Firefox, Chrome, and Safari browsers and even force an iPhone to restart, prompting security researchers to examine the code, observed effects on desktop and mobile, and discuss whether it is a bug or a true 0‑day exploit.

0dayCrashJavaScript
0 likes · 4 min read
How a Tiny JavaScript Snippet Can Crash Browsers and Reboot iPhones
21CTO
21CTO
Jan 20, 2016 · Backend Development

7 Bold Predictions Shaping the Future of Programming (2024‑2029)

The article presents nine speculative trends for the next five years in programming—covering REST‑based IoT, a resurgence of binary protocols, video overtaking HTML, ever‑more capable smartphones, massive databases, JavaScript dominance via code‑generation bots, PHP’s comeback, widespread coding education, and managerial overreach—while stressing the inherent uncertainty of tech forecasts.

Backend DevelopmentDatabasesJavaScript
0 likes · 11 min read
7 Bold Predictions Shaping the Future of Programming (2024‑2029)
Aotu Lab
Aotu Lab
Jan 20, 2016 · Frontend Development

Build a Five‑in‑a‑Row (Gomoku) Game with Pure JavaScript: Step‑by‑Step Guide

This tutorial walks you through creating a complete five‑in‑a‑row (Gomoku) web game using vanilla JavaScript, covering development approaches, board rendering, event delegation, win‑checking algorithms, piece placement logic, game reset, testing strategies, and essential JavaScript event handling techniques.

FrontendGame DevelopmentGomoku
0 likes · 12 min read
Build a Five‑in‑a‑Row (Gomoku) Game with Pure JavaScript: Step‑by‑Step Guide
Aotu Lab
Aotu Lab
Jan 13, 2016 · Frontend Development

Mastering JavaScript Promises: From Basics to Advanced Patterns

This article introduces JavaScript Promises, covers their history, demonstrates how to promisify callbacks, use Promise.all for parallel tasks, chain with then, handle execution order, and implement custom cancellation, providing clear code examples and best‑practice guidance.

FrontendJavaScriptPromise
0 likes · 9 min read
Mastering JavaScript Promises: From Basics to Advanced Patterns
Aotu Lab
Aotu Lab
Jan 6, 2016 · Frontend Development

Build a 360° Panorama Viewer in the Browser with Three.js

This guide explains how to create an interactive 360° panoramic viewer on web pages using Three.js, covering the fundamentals of panoramic images, camera setup, positioning, and rendering techniques to achieve seamless spherical navigation.

3DFrontendJavaScript
0 likes · 5 min read
Build a 360° Panorama Viewer in the Browser with Three.js
Qunar Tech Salon
Qunar Tech Salon
Dec 20, 2015 · Frontend Development

A Decade‑Long Journey of Frontend Framework Selection and Component‑Based Development

The article recounts a Chinese company's evolution from an IE‑only HTC‑based UI stack in 2007 through a Flex‑driven heavyweight solution and finally to Angular, highlighting the technical, organizational, and strategic challenges of adopting component‑based front‑end architectures across multiple browser generations.

AngularComponentizationFlex
0 likes · 19 min read
A Decade‑Long Journey of Frontend Framework Selection and Component‑Based Development
ITPUB
ITPUB
Dec 16, 2015 · Frontend Development

Unlock 37% Faster Lo‑Dash Performance with Lazy Evaluation and Pipelining

Discover how Lo‑Dash’s lazy evaluation and pipelining can cut execution time by over a third, by processing only the necessary elements, avoiding intermediate arrays, and deferring computation until .value() is called, with concrete code examples and performance benchmarks.

FrontendJavaScriptLazy Evaluation
0 likes · 6 min read
Unlock 37% Faster Lo‑Dash Performance with Lazy Evaluation and Pipelining