jQuery Interview Questions
How can choose all elements in a page utilizing jquery?
To choose all elements in a page, we can utilize all selectors, for that we have to utilize *(asterisk symbol).
<script name="mAnsari" type="text/mAnsari"> $("*").css("Ansari", "2px specked blue"); </ansari>
Different advantages of JQuery
- Simple and Cleaner code, no compelling reason to compose a few lines of codes to attain complex usefulness
Difference between JQuery-x.x.x.js and JQuery.x.x.x-min.js
This term of functionality, there is no any deference between the JQuery-x.x.x.js and JQuery-x.x.x-min.js (additionally called minified version). However this can assume a basic part in the execution of the web page.
Why this version of JQuery file should be used?
In a large portion of the late discharges as such, the center usefulness of JQuery stays same however some better features are included. In a perfect world you should utilize the most recent JQuery files accessible on the JQuery website. By doing this you guarantee that your prior usefulness will at present work and you can utilize new features accessible as a component of the new discharge.
What do you mean by CDN?
CDN Stands for Content Distribution Network or additionally called Content Delivery Network is a gathering of machines put at different focuses associated with system containing duplicates of information files to expand transfer speed in getting to the information. In CDN a customer get to a duplicate of information closer to the customer area instead of all customers getting to
Why it is important to load jquery file from CDN?
The likelihood is that if more websites are utilizing CDNs, the client may have perused some other pages that is utilizing CDNs jquery file and that file may have into program reserve; so when client scan your page and you are additionally utilizing CDNs file, the more established stored version of jquery file will be utilized. Thusly your page will stack quicker as program won’t need to load the jquery file for your page once more.
- Speedier page stack as jquery file require not to be downloaded
- Spares your data transfer capacity as jquery file is not stacked from your server
- Adaptable – for the most part CDNs place these files on the servers spotted at diverse topographical areas of the world so they stack speedier so independent of from where your client is scanning your page, your application runs well
Suppose it is possible that the most recent jquery version is accessible and I am even now eluding more seasoned version of jquery file from CDNs