Wiki

Clone wiki

LiteQuery / Home

LiteQuery

LiteQuery is a lightweight (and much less powerful) version of the popular jQuery framework. It's purpose is to allow developers access to a common sense API for DOM access and manipulation in a super small package. LiteQuery is ideal when you don't need all of the robust features (and ~100kb minimized) of jQuery.

Example:

#!javascript
// After including lq.js:
!function () {
    var element1 = lq('#elemId1');

    element1.append('<p>appended p elem</p>');

    // Use it just like jQuery:

    var $ = lq;
    $('#elemId2').on('click', function () {
        console.log('click event handled!');
        $(this).off('click');
    });
}()

Check out the API for more detailed information

Updated