Tagged articles

JavaScript

2473 articles · Page 25 of 25
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.

JavaScriptPerformanceWebAssembly
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.

BINDExecutionContextJavaScript
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.

JavaScriptclick eventevent delegation
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.

AnalyticsJavaScriptbeacon-api
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.

DebuggingJavaScriptPerformance
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.

Functional ProgrammingJavaScriptdeclarative programming
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.

AsynchronousFrontend PerformanceJavaScript
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 optimizationJavaScriptfrontend
0 likes · 9 min read
10 Proven Ways to Reduce Reflows and Boost Web Performance
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.

JavaScriptRESTbackend development
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.

GomokuJavaScriptevent delegation
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.

JavaScriptPromiseasync
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.

3DJavaScriptThree.js
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.

JavaScriptLo-DashPerformance Optimization
0 likes · 6 min read
Unlock 37% Faster Lo‑Dash Performance with Lazy Evaluation and Pipelining
21CTO
21CTO
Dec 15, 2015 · Backend Development

Will JavaScript Conquer All Development Platforms? Node.js, Mobile & More

Kevin Lacker argues that JavaScript’s pervasive ecosystem is turning it into the default language for browsers, servers, and even native mobile apps, with Node.js leading backend adoption, React Native pushing cross‑platform native development, and industry surveys confirming its growing dominance across the developer community.

JavaScriptNode.js
0 likes · 10 min read
Will JavaScript Conquer All Development Platforms? Node.js, Mobile & More
Node Underground
Node Underground
Nov 19, 2015 · Backend Development

Mastering yield* in Koa: How Generators and co Simplify Async Flow

This article demystifies the use of yield* in Koa middleware by comparing plain yield with delegating yield, explaining how the co library handles generators and promises, and outlining the practical advantages of native yield* syntax for clarity, performance, and correct this binding.

JavaScriptKoaasync
0 likes · 9 min read
Mastering yield* in Koa: How Generators and co Simplify Async Flow
21CTO
21CTO
Nov 15, 2015 · Frontend Development

Why JavaScript Function Declarations Behave Differently Than Expressions

This article explains the crucial differences between JavaScript function declarations and function expressions, how hoisting affects their availability, and why misunderstanding these concepts can lead to unexpected bugs in your code.

JavaScriptfrontendfunction-declaration
0 likes · 7 min read
Why JavaScript Function Declarations Behave Differently Than Expressions
21CTO
21CTO
Nov 8, 2015 · Frontend Development

How Front‑End Engineers Can Turn JavaScript into a Powerful User‑Behavior Analytics Tool

The article explains why user‑behavior data is often ignored by UED teams, outlines a three‑stage collection‑analysis‑reporting pipeline, and shows how JavaScript running on V8/Node.js can empower front‑end developers to process massive logs, reducing reliance on separate BI resources.

Data AnalyticsJavaScriptLog analysis
0 likes · 9 min read
How Front‑End Engineers Can Turn JavaScript into a Powerful User‑Behavior Analytics Tool
Node Underground
Node Underground
Oct 27, 2015 · Backend Development

Why Node.js Became the Backbone of Modern Web Development

This article traces Node.js’s evolution from a modest 2009 V8‑based runtime to a dominant backend platform, highlighting npm’s impact, its event‑driven, non‑blocking architecture, real‑world strengths and limitations, and why careful evaluation is essential before adopting it.

JavaScriptNode.jsbackend development
0 likes · 6 min read
Why Node.js Became the Backbone of Modern Web Development
Java High-Performance Architecture
Java High-Performance Architecture
Oct 13, 2015 · Frontend Development

Understanding JavaScript Hoisting: Why console.log(test) Returns Undefined

JavaScript executes code by first compiling function and var declarations within a scope, then running statements top‑to‑bottom, which explains why accessing a var‑declared variable before its assignment yields undefined while referencing an undeclared variable throws an error, as illustrated through detailed examples.

FunctionJavaScriptScope
0 likes · 4 min read
Understanding JavaScript Hoisting: Why console.log(test) Returns Undefined
21CTO
21CTO
Oct 6, 2015 · Frontend Development

Inside JD.com’s Front‑End: Seajs, Lazy Loading, and Smart Caching

While browsing JD.com with Chrome’s console, the author uncovers the site’s front‑end architecture, revealing the use of Seajs, a custom jQuery build, lazy‑loading modules, localStorage caching, and a modular project structure that together deliver fast page loads and efficient updates.

JavaScriptSeaJScaching
0 likes · 8 min read
Inside JD.com’s Front‑End: Seajs, Lazy Loading, and Smart Caching
Java High-Performance Architecture
Java High-Performance Architecture
Sep 29, 2015 · Frontend Development

Which JavaScript Libraries and Tools Do Developers Prefer? Latest Survey Results

A recent developer survey reveals the most popular JavaScript libraries, frameworks, module loaders, and unit testing tools, showing jQuery leading with 91.5% interest overall and 56.53% usage in projects, while other tools like React, AngularJS, webpack, and Mocha capture smaller but notable shares.

FrameworksJavaScriptLibraries
0 likes · 3 min read
Which JavaScript Libraries and Tools Do Developers Prefer? Latest Survey Results
21CTO
21CTO
Sep 20, 2015 · Frontend Development

10 Common Web Development Mistakes and How to Fix Them

This article outlines ten frequent web developer pitfalls—from outdated HTML and browser‑specific code to slow performance and excessive page reloads—explaining their impacts and offering practical solutions such as modern semantic markup, cross‑browser testing, image optimization, responsive design, and automated tooling.

CSSHTMLJavaScript
0 likes · 15 min read
10 Common Web Development Mistakes and How to Fix Them
Java High-Performance Architecture
Java High-Performance Architecture
Sep 16, 2015 · Frontend Development

Mastering SeaJS: A Quick Guide to CMD‑Based JavaScript Module Loading

SeaJS is a CMD‑compliant JavaScript module loader that enables modular development across all major browsers, and this guide walks you through initializing modules, defining them with the `define` function, understanding factory parameters, and using absolute, relative, and base‑path addressing for seamless module management.

JavaScriptSeaJScmd
0 likes · 3 min read
Mastering SeaJS: A Quick Guide to CMD‑Based JavaScript Module Loading
Java High-Performance Architecture
Java High-Performance Architecture
Sep 15, 2015 · Frontend Development

Why Non‑Modular JavaScript Is Painful and How CMD Solves It

Non-modular JavaScript leads to naming conflicts and tangled file dependencies, but adopting a module system like CMD eliminates these issues by encapsulating functionality, simplifying imports with define, require, and exports, and streamlining project structure for scalable front‑end development.

Code OrganizationJavaScriptModular Development
0 likes · 4 min read
Why Non‑Modular JavaScript Is Painful and How CMD Solves It
21CTO
21CTO
Sep 12, 2015 · Information Security

How Browser Fingerprinting Works and How to Defend Against It

This article explains the many data points browsers expose—such as IP, cookies, language, hardware, and HTML5 APIs—that enable device fingerprinting, describes how fingerprinting scripts operate, and outlines practical countermeasures like disabling JavaScript, using privacy extensions, and configuring browser settings.

Browser FingerprintingHTML5 APIsJavaScript
0 likes · 10 min read
How Browser Fingerprinting Works and How to Defend Against It
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Jul 29, 2015 · Frontend Development

An Overview of Backbone.js: Architecture, Core Components, and Practical Use Cases

This article provides a comprehensive introduction to Backbone.js, describing its lightweight MVC architecture, core components such as Models, Collections, Views, Events, Sync, Router, and History, and discusses its advantages, suitable scenarios, comparisons with other frameworks, and a real‑world implementation in the Wandoujia PC client.

Backbone.jsJavaScriptMVC
0 likes · 15 min read
An Overview of Backbone.js: Architecture, Core Components, and Practical Use Cases
Qunar Tech Salon
Qunar Tech Salon
Jul 27, 2015 · Frontend Development

JavaScript JSON Number Handling and Integer Overflow Issues

The article explains how JavaScript interprets JSON values without quotation marks as numbers, demonstrates the difference between numeric and string representations of the same value, and warns that large numeric literals may overflow a 32‑bit integer during internal conversion.

Data TypesJavaScriptinteger overflow
0 likes · 2 min read
JavaScript JSON Number Handling and Integer Overflow Issues
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
May 21, 2015 · Information Security

Understanding DDoS Attacks via Malicious JavaScript and Mitigation with HTTPS and Subresource Integrity

The article explains how malicious JavaScript can turn browsers into participants of DDoS attacks through techniques like server hijacking and man‑in‑the‑middle injection, and describes how HTTPS and the emerging Subresource Integrity feature can help protect websites from such threats.

DDoSHTTPSJavaScript
0 likes · 6 min read
Understanding DDoS Attacks via Malicious JavaScript and Mitigation with HTTPS and Subresource Integrity
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Apr 20, 2015 · Frontend Development

A Comprehensive Guide to Modern JavaScript Development: ES2015, Modules, Build Tools, Testing, Automation, and Node

This article provides an extensive overview of modern JavaScript development, covering the transition to ES2015, module systems, build tools like Webpack, testing frameworks, process automation, code quality tools, Git workflows, client‑side templating, and essential Node.js knowledge for frontend engineers.

Build ToolsES2015JavaScript
0 likes · 12 min read
A Comprehensive Guide to Modern JavaScript Development: ES2015, Modules, Build Tools, Testing, Automation, and Node
Qunar Tech Salon
Qunar Tech Salon
Mar 6, 2015 · Frontend Development

Key Features of ES6 (ECMAScript 2015)

This article enumerates the major ES6 (ECMAScript 2015) features, including arrow functions, classes, enhanced object literals, template strings, destructuring, default/rest/spread parameters, let/const, iterators, generators, Unicode support, modules, data structures like Map and Set, proxies, symbols, promises, and more.

ECMAScript2015JavaScriptes6
0 likes · 2 min read
Key Features of ES6 (ECMAScript 2015)
Baidu Tech Salon
Baidu Tech Salon
Jan 7, 2015 · Frontend Development

Front‑End vs iOS Development: Languages, Threads, Storage & Performance Compared

This article analytically compares web front‑end development and iOS mobile development, covering language choices, threading models, data storage strategies, framework ecosystems, compatibility challenges, performance optimization, compilation processes, security considerations, and the impact on user interaction and development workflow.

JavaScriptObjective‑CPerformance
0 likes · 13 min read
Front‑End vs iOS Development: Languages, Threads, Storage & Performance Compared
Qunar Tech Salon
Qunar Tech Salon
Dec 17, 2014 · Backend Development

The Origin and Goals of io.js: A Fork of Node.js

The article explains how io.js emerged as a community‑driven fork of Node.js in early 2015 to address release frequency and governance concerns, describing its open management model, weekly release plans, compatibility with the npm ecosystem, and the broader context of Node Forward and community reactions.

JavaScriptNode.jsio.js
0 likes · 5 min read
The Origin and Goals of io.js: A Fork of Node.js
Baidu Tech Salon
Baidu Tech Salon
Dec 17, 2014 · Frontend Development

Baidu Technical Salon: 25-Year Evolution of Web Design

The Baidu Technical Salon article traces 25 years of web‑design evolution—from text‑only Unix browsers in 1989, through Mosaic’s image tables, JavaScript and Flash, the rise of CSS, the iPhone‑driven shift to responsive and flat design, and looks ahead to tools that will finally free designers from cross‑browser hassles.

CSSFlashJavaScript
0 likes · 4 min read
Baidu Technical Salon: 25-Year Evolution of Web Design
Suning Design
Suning Design
Nov 13, 2014 · Frontend Development

Discover 20+ Lightweight jQuery Plugins to Boost Your Frontend

This guide showcases a curated collection of lightweight jQuery plugins—covering layout, animation, media, sliders, typography, and utility features—each described with its core functionality and visual example to help developers enhance website interactivity and design efficiently.

JavaScriptUI componentsWeb Development
0 likes · 8 min read
Discover 20+ Lightweight jQuery Plugins to Boost Your Frontend
Baidu Tech Salon
Baidu Tech Salon
Oct 17, 2014 · Information Security

How to Hook and Hide JavaScript APIs to Thwart XSS Attacks

This article explores practical techniques for intercepting and protecting JavaScript APIs—such as setAttribute—using MutationObserver, API hooks, random token naming, property hiding, and recursive iframe monitoring to build a resilient front‑end defense against XSS and other injection attacks.

API interceptionJavaScriptMutationObserver
0 likes · 14 min read
How to Hook and Hide JavaScript APIs to Thwart XSS Attacks
Baidu Tech Salon
Baidu Tech Salon
Oct 13, 2014 · Fundamentals

12 Speculative Futures for the Programming World

Looking ahead, programmers may see GPUs supplant CPUs, databases handle complex analytics, JavaScript dominate browsers and servers, Android power every device, the Internet of Things expand, open‑source ecosystems seek sustainable funding, CMS tools become richer, plugin‑centric development replace monolithic coding, command‑line interfaces endure, education strives for true simplification, outsourcing battles automation, and managers risk growing technically illiterate.

AndroidGPUIoT
0 likes · 10 min read
12 Speculative Futures for the Programming World
Baidu Tech Salon
Baidu Tech Salon
Sep 23, 2014 · Fundamentals

Ten Commonly Cited Quirky Features Across Programming Languages

The article surveys ten frequently cited quirky language features—from JavaScript’s “+” string coercion and automatic semicolon insertion, to Perl’s mandatory true module return and cryptic special variables, C’s interchangeable array indexing, PHP’s mixed case sensitivity, Ruby’s truthy zero, Python’s indentation blocks, C’s pointer arithmetic, and Java’s autoboxing with Integer caching—highlighting their surprising behaviors and community frustrations.

C++JavaScriptPython
0 likes · 10 min read
Ten Commonly Cited Quirky Features Across Programming Languages
Baidu Tech Salon
Baidu Tech Salon
Jun 17, 2014 · Frontend Development

How SIMD Can Supercharge JavaScript Performance Across Browsers

JavaScript’s role in web performance is critical, and Intel’s new SIMD APIs—now being integrated into Chrome and Firefox—enable cross‑platform, plugin‑free acceleration that can boost script execution by 3‑10× on both x86 and ARM CPUs, as demonstrated on multiple hardware platforms.

Browser PerformanceChromeFirefox
0 likes · 4 min read
How SIMD Can Supercharge JavaScript Performance Across Browsers
Baidu Tech Salon
Baidu Tech Salon
May 21, 2014 · Frontend Development

Show‑off JavaScript Techniques to Impress Others

The article showcases a suite of flashy JavaScript tricks—alternative anonymous‑function syntaxes, the void operator for undefined, logical‑operator conditionals, optional semicolons, early ES6 features, AMD wrapping, the Function constructor, and native DOM selectors—while warning that some shortcuts hurt readability and should be used sparingly.

AMDAnonymous FunctionsDOM
0 likes · 6 min read
Show‑off JavaScript Techniques to Impress Others