Amusing jQuery Facts You Never Knew!
Originally named jSelect
And one of most amusing jQuery facts is that after naming it as jQuery, John Resig was blamed by Java Library project owners for copying its name from a Java SQL library! Resig apologised, and jQuery stands as it was.
Creative Commons License
Though the Creative Commons license enables the free sharing of copyrighted resources, it mainly aims at works of creativity such as stock photos and UI kits. Open source coding doesn’t sit well with a CC license, and though John Resig had a variety of licenses like MIT and GPL to choose from, he still went for the Creative Commons license. jQuery soon shifted to the MIT license, shaking off the CC license, with John Resig dismissing it as a choice not well made. This was surely one of most amusing jQuery facts you would feel!
Inspired by other projects
jQuery debuted in New York City
jQuery made its public debut on the 14th of January, 2006 at the BarCamp technology conference in New York City. BarCamp generally addresses Web technologies as well as open source technologies.
jQuery without VCS
An open source application today would always need a Version Control System, such as GIT. Still, John Resig didn’t use one while he developed the first source code of jQuery. A Version Control System can be viewed as a sink of files with monitored access to it. The use of VCSs wasn’t prevalent at that time, and John decided to go with the flow. At present, jQuery uses SVN as its Version Control System.
On the designing front, there are still some amusing jQuery facts that might not be well known to the users. To create an element, one had to write the traditional DOM “createElement”. This has been made easier in jQuery, by the use of the $(“<li/>”); tag, thus enhancing its usage simplicity.
Also, jQuery enhances insertion techniques through Document Fragment. A Document Fragment can be considered to be a container holding some of the DOM nodes. Nodes represent single items on a tree – it may be an Attribute or an Entity. JQuery simplifies and enhances the performance of insertion by storing the nodes for processing, and thus enabling the insertion of content at the end of each node, by just specifying the parameters. One of the amusing jQuery facts that the coders would surely love to know!
jQuery also allows its users to give namespaces to data, scoping it to a plug-in or any other name which may matter. This important property of jQuery enables the users to avoid clashes with other code pieces having the same data name, and also helps them in using their get/set values.
jQuery also natively supports jSONP, which means jSON with padding. This enables its users to create and send cross-domain Ajax requests, though this requires the domain requested to have a jSONP API so as to wrap the JSON with a call-back function.