It is a bad idea because there is no such thing as foolproof browser sniffing. The only way to know what the browser can do is to test its features, and loading a piece of script for every feature implementation specific to a browser completely kills the benefit of loading less script.
Beside, jQuery is a small library available on powerful CDNs such as Google one, you shouldn't be too worried by the fact that it embeds some bits of useless code for your browser. On Aug 19, 10:18 pm, ludovic <ludothebe...@gmail.com> wrote: > A technic often used in javascript is the downloading of a different > script for each web browser, to avoid unuseful code. > > Isn't there a way to create one file per renderer in jquery, like > > jquery.trident.js > jquery.gecko.js > jquery.webkit.js > jquery.gecko-webkit.js > ... > jquery.all.js > > And put the specific codes in the right scripts, a develop a merging > tool to create the actual jquery.js script ? > > It would permit user to choose to download the whole script or only > the necessary code. > > Regards, > Ludovic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---