Online Book Reader

Home Category

JQuery_ Novice to Ninja - Earle Castledine [156]

By Root 1172 0
this effect by the 4,377 lines in the jQuery source, and you can imagine how difficult it would be to make any sense of it. And that’s without altering any names.

Of these two methods, Packer is arguably the more extensive, not only removing whitespace but also converting names to base 62. Its compressed footprint can therefore be smaller, yet this mightn’t necessarily result in the fastest solution, as it means the minified code must be “unpacked” when delivered to the browser. Edwards’ most recent modifications have seen some astounding increases in unpacking speeds, but this overhead should be considered when adopting a final solution.

Two other popular options for minifying your JavaScript are Yahoo’s YUI Compressor and Google’s Closure Compiler.

The teams behind all four methods—well, three, as Crockford is fairly much sorted with JSMin—are continually refining their solutions, and are responsive to industry and community feedback.

Index

Symbols

!== (strict inequality) operator, Equality Operators

# (hash symbol) id name, Simple Selecting

$ (dollar sign)

JavaScript variable name, The jQuery Alias

uniqueness of, Avoiding Conflicts

$(document).ready() function, Making Sure the Page Is Ready, Setting CSS Properties

$. prefixed functions, $. Prefixed Functions

$.active property (Ajax), Global Progress Indicator

$.ajax method

about, The jQuery Ajax Workhorse

callbacks and functions, Callbacks and Functions

flags, Flags

options, $.ajax Options, Callbacks and Functions

settings, Settings

$.ajaxSetup action, Common Ajax Settings

$.browser function, Browser Sniffing (… Is Bad!)

$.browser.version function, Browser Sniffing (… Is Bad!)

$.datepicker.setDefaults method, Date Picker Utilities

$.each function, A Client-side Twitter Searcher, Ajax Image Gallery

$.extend function, Adding Options

$.fn.extend() method, Adding Methods to jQuery

$.get request, GET and POST Requests

$.getJSON function, Fetching Data with $.getJSON, Consuming XML

$.getScript function, Loading External Scripts with $.getScript

$.inArray, $.map and $.inArray

$.map, $.map and $.inArray

$.post method, Sending Form Data

$.post request, GET and POST Requests

$.support method, $.support Options

$.trim method, Overwriting Existing Functionality

% (percent symbol) modulus, True Cross-fading

&& and operator, Advanced Tooltips

' (quotes), Setting CSS Properties, jQuery UI Dialog

+ arithmetic operator, Basic Tabs

++ increment operator, True Cross-fading, Handling Errors

-- decrement operator, True Cross-fading, Handling Errors

. (dot) notation, Creating a Widget

. (period), namespaces, Unbinding and Namespacing

1-up notifications, 1-up Notification, 1-up Notification

:checked filter, Simple Form Validation

:eq filter, A Scrolling Gallery with scrollTo

:eq selector attribute, Rollover Fader

:even filter, Filters

:hover pseudo selector, Drop-down Menus

:not selector, A Simple Accordion

:selected filter, Simple Form Validation

= (assignment) operator, Equality Operators

== (equality) operator, Equality Operators

=== (strict quality) operator, Equality Operators

A

“above the fold”, defined, Create Your Own Selectors

accessibility, semi-transparent controls, Sliding Overlay

action

attr, Custom Lightbox

actions

$.ajaxSetup action, Common Ajax Settings

about, Dissecting a jQuery Statement, this

attr action, Inverting a Selection

bind, Inline Editing

chaining actions, Chaining Actions

closest action, Growl-style Notifications

data action, Smarter Scrolling with the data Action, Treating JavaScript Objects as jQuery Objects

default event actions, Default Event Actions

delay, Pausing the Chain

disableSelection action, jQuery UI sortable

enableSelection action, jQuery UI sortable

filter action, Searching through Lists

hide action, Hiding and Revealing Elements

html action, Modifying Content

is action, Toggling Elements

live action, Simple Modal Dialog

one action, Adding the Plugin’s Functionality

parent actions, Thumbnail Scroller

pushStack action,

Return Main Page Previous Page Next Page

®Online Book Reader