Sunday, July 7, 2019

jQuery


Image result for jquery
INTRO:-  
jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax


Query — New Wave JavaScript

  ➤ In the spirit of open supply software system development, jQuery continuously encourages community code contribution. to assist you start and before you jump into writing code, make certain to browse these vital contribution tips thoroughly:

   1.Getting concerned
   2.Core vogue Guide
   3.Writing Code for jQuery Foundation comes

Environments during which to use jQuery

  ➤ Browser support
  ➤ jQuery conjointly supports Node, browser extensions, and                alternative non-browser environments.

What you wish to make your own jQuery

  ➤ To build jQuery, you wish to possess the most recent Node.js/npm and lowlife one.7 or later. Earlier versions would possibly work, however aren't supported.

  ➤ For Windows, you've got to transfer and install lowlife and Node.js.

  ➤ OS X users ought to install alcoholic beverage. Once alcoholic beverage is put in, run brew install lowlife to put in lowlife, and brew install node to put in Node.js.

  ➤ Linux/BSD users ought to use their applicable package managers to put in lowlife and Node.js, or build from supply if you swing that approach. Easy-peasy.

How to build your own jQuery

  ➤ Clone a replica of the most jQuery lowlife repo by running:

git clone lowlife://github.com/jquery/jquery.git

Enter the jquery directory and run the build script:

cd jquery && npm run build


  ➤ The designed version of jQuery are going to be place within the dist/ directory, in conjunction with the minified copy and associated map file.

  ➤ If you would like to make custom build or facilitate with jQuery development, it'd be higher to put in grunt instruction interface as a world package:

npm install -g grunt-cli

  ➤ Make sure you've got grunt put in by testing:

grunt -V

  ➤ Now by running the grunt command, within the jquery directory, you'll build a full version of jQuery, a bit like with Associate in Nursing npm run build command:

grunt


  ➤ There square measure several alternative tasks offered for     jQuery Core:

grunt -help

Modules

   ➤Special builds are often created that exclude subsets of jQuery practicality. this permits for smaller custom builds once the builder is definite that those components of jQuery aren't getting used. as an example, Associate in the Nursing app that solely used JSONP for $.ajax() and didn't have to be compelled to calculate offsets or positions of components might exclude the offset and ajax/xhr modules.

   Any module is also excluded apart from core, and selector. To exclude a module, pass its path relative to the src folder (without the .js extension).

No comments:

Post a Comment

Search This Blog