jQuery is a cross-browser Javascript library that provides abstractions for DOM traversal, event handling, animation, and Ajax interactions for rapid web development.
Questions tagged [jquery]
132 questions
28
votes
5 answers
Does "putting Javascript at the bottom" defeat the purpose of document.ready?
I know that it is recommended to put Javascript at the bottom of the page, but if I'm using jQuery doesn't this defeat its purpose to run as the DOM is loading?
If I have a dropdown menu, for example, the dropdowns won't show until all the rest of…
DisgruntledGoat
- 21,658
- 5
- 56
- 101
21
votes
5 answers
Why don't browsers have jQuery installed?
I'm using jQuery on several of my websites and although I use a CDN to serve it, it just doesn't make sense for visitor to download jQuery each time. jQuery must be the world's most widely used JavaScript framework - wouldn't it make more sense if…
user1914292
- 361
- 2
- 4
18
votes
5 answers
pros/cons of hash navigation from SEO perspective
I'm working on an application that implements navigation based on hashchange events. Content is mostly loaded through ajax calls after hash changes (and displayed by DOM injections).
From a SEO perspective - are search engines able to index this…
ezmilhouse
15
votes
4 answers
Google jQuery hosted library - is it any good?
Is there any REAL touchable benefit of using the Google jQuery hosted library? Or shall we just download it to our server?
What are your opinions on this?
Leo
- 295
- 2
- 7
12
votes
5 answers
Is it OK to use jQuery for responsive web design?
I have been tasked to update a site to make it responsive and appear correctly on smart phones. Unfortunately, the site in its current form isn't very easy to work with - I can't just change the CSS.
Is it considered bad to detect the browser size…
MeltingDog
- 1,373
- 3
- 21
- 36
12
votes
3 answers
Loading main javascript on every page? Or breaking it up to relevant pages?
I have a 700kb decompressed JS file which is loaded on every page. Before I had 12 javascript files on each page but to reduce http requests I compressed them all into 1 file.
This file is ~130kb gzipped and is served over gzip. However on the local…
Kyle
- 305
- 2
- 7
10
votes
2 answers
Is it common, or "smart", for high-traffic sites use externally-hosted js/css frameworks?
Many popular JS/CSS frameworks are offered via Google's Libraries API (jQuery, Dojo, MooTools etc.). Yahoo also hosts it's own YUI toolkit, as do many others.
Do any high volume/traffic sites actually rely on these externally-hosted resources…
jlb
- 203
- 1
- 5
9
votes
4 answers
Protect Javascript code from being stolen
I developed a web app with jQuery, HTML, and CSS markup which would be a premium web app. So I have to ensure the security of the code from being stolen. But, as all these are client side, there is no 100% secure way to protect them. But I want to…
Kaidul Islam
- 195
- 1
- 1
- 6
9
votes
2 answers
What are the differences between Firefox's Javascript engine and Chrome's V8?
I've noticed that Chrome and Firefox take different amounts of time to render certain things. In general, Chrome has been faster. What should I know about both of them (and IE8/9, too, I guess) when constructing a Javascript/jQuery app?
Jason
- 2,158
- 21
- 26
7
votes
3 answers
For webpages using jQuery, will the Googlebot index them on "page load" or after the "page ready" state?
Will the Googlebot index a webpage on "page load" or after the "page ready" state. The reason I'm asking is because I'm trying to change my h1 and h2 tags using jQuery on page Load.
maheshwaghmare
- 171
- 3
7
votes
9 answers
prototype.js or jQuery for new projects?
Should I use prototype.js or jQuery for a new project? Rails comes with prototype.js but jQuery seems the library of choice for the rest of the world. Is prototype.js still under active development? It seems a little bit dusty ...
f00860
- 289
- 3
- 8
6
votes
2 answers
jQuery image slider with different sized images
All of the jQuery image sliders I've seen require images to be the same size.
Do you know any which can dynamically resize their display pane to fit the size of the image. I have seen this done on commercial websites.
Steve
- 1,376
- 4
- 19
- 38
5
votes
1 answer
Effect on SEO of lazy scrolling on HTML comments
I am thinking about using a JS script that lazy loads HTML when scrolling ( http://ivorycity.com/blog/2011/04/19/jquery-lazy-loader-load-html-and-images-on-scroll/).
I am not too sure about whether this approach is SEO friendly. As far as I know,…
marlene
- 53
- 1
- 3
5
votes
2 answers
Which is better, minified or obfuscated code?
I’m confused between the two. Which is better, especially for jQuery and JS? Also, which do you think is more SEO-friendly? Note: I’m a noob.
vurquee
- 153
- 3
4
votes
1 answer
How to avoid html tags in Google search summary
I am using CKEditor to let people describe their organization with all the styles and fonts. So when it saves in the database its like < gets saved as > and rest all you know for the html tags. When I populate this page for public view I convert…
Preeti Maurya
- 141
- 1