Search code examples
jqueryembedded-browser

How do I get jQuery working on the ANT Galio browser?


I'm developing a web application and would like to use the jQuery library to ease development.

This application will be run on an embedded device running the ANT Galio browser.

The User-Agent string for the device I'm testing against is:

Mozilla/5.0 (compatible; ANTGalio/2.1.19.12.020.2.0.00; vxWorks-6.3)

When I try to run a page using jQuery on this device however it fails silently. Based on the help from @Adam Terlson I've determined that jQuery 1.6.1 does not load correctly on this browser out of the box based on the fact that neither $ nor jQuery is defined after loading the library (both are defined testing the page in Firefox).

Does anybody have any experience using jQuery in the ANT Galio browser? Is it possible to get it running or am I out of luck?


Solution

  • It is bad idea to use any existing libraries on ANT Galio, especially ver 2.x. Libraries like jQuery cover cross-browsers compatibility (you don't need it) and put easy to use API on the top. Performance is the second thing.

    jQuery uses extremely slow selector engine Sizzle. I think this is main reason why you wont be able to use jQuery there.

    For example accessing DOM elements using Sizzle is about 100 times slower then pure JS.

    IMHO only one way to programming for ANT Galio browser is using JavaScript.