Using techniques like validation, obfuscation, and compression can result in significant decreases in file size, sometimes 50 to 75 percent. Combine that with several other non-pragmatic methods, dramatic improvements in page load performance can be realized.
Care for JavaScript
Building and developing frameworks along with following web standards and some form of a design pattern will help [...]
Posts tagged ‘javascript’
JavaScript Optimization for Page Load Performance
Working With Regular Expressions in JavaScript
Defining Regular Expression Patterns:
The most common way to define a regexp pattern is to define a variable instance with a pattern you want to match, along with any modifiers you wish to use. This can be achieved with the following:
1
var pattern = new RegExp("yourpattern", ["g"|"gi"|"i"|"x"]);
Understand that the second parameter is just an example, and not [...]