Hot answers tagged

55 votes

Why don't browsers have jQuery installed?

If you serve jQuery from a popular CDN such as Google's Hosted Libraries or cdnjs, it won't be redownloaded if your visitor has been on a site that referenced it from the same source (as long as the ...
user avatar
  • 20.3k
21 votes

Why don't browsers have jQuery installed?

Not only is jQuery not the only popular JS library, a browser would potentially have to include multiple versions. The Google CDN currently lists: 42 versions of jQuery; 44 versions of jQuery UI; 6 ...
user avatar
  • 5,794
14 votes

Why don't browsers have jQuery installed?

The browser is the engine it isn't the engine designer's duty to find out what kind of fuel and extra parts are you going to put into your car and include it for you. If they would do this browsers ...
user avatar
  • 296
4 votes
Accepted

Forbidden 403 for js file on localhost?

Folder and File Permissions and Ownership It sounds like you are having ownership problems rather than file permissions. Doing a chmod 0755 will do the following: Owner: Write - Read - Execute Group:...
user avatar
  • 32.6k
4 votes

jQuery not loading from CDN

Remove "http:" from the script src url, like: <script src="//code.jquery.com/jquery-2.1.4.min.js"> In case the problem insists, check if shows errors through Chrome Dev Console and paste it ...
user avatar
  • 588
4 votes

How can I track button click in google analitycs?

You are using gtag.js tracking code. Syntax for event tracking for gtag.js is: gtag('event', 'action', {'event_category': 'category', 'event_label': 'label', 'value': value}); If it does not ...
user avatar
  • 3,353
3 votes
Accepted

Clicking on the downloaded jQuery file gives errors from the source "Microsoft JScript compilation error"

JQuery isn't something you "open" it is a JavaScript library you include and reference in your website's code via <script></script> tags. An example taken from the jQuery site itself is: ...
user avatar
3 votes
Accepted

Is loading the article content using jQuery & AJAX bad for SEO?

How to achieve SEO for XHTML pages which load data in DOM using a JQuery-AJAX service calls? You can load any data with Ajax call. For example, this site changes the title of all pages (it ...
user avatar
3 votes

For webpages using jQuery, will the Googlebot index them on "page load" or after the "page ready" state?

Google indexes the text after the page is fully ready. I have a password creation site that uses JavaScript to write random passwords into the page on jQuery's $(document).ready. Googlebot was ...
user avatar
2 votes
Accepted

Should notification messages be embedded in html or separate using jQuery?

The four most used notifications are "error", "warning", "success" or "info". (usually colored red, yellow, green and blue) For "error" and "success" we take for granted that the user has started a ...
user avatar
  • 291
2 votes

For webpages using jQuery, will the Googlebot index them on "page load" or after the "page ready" state?

An article I'd read earlier this month revealed tests that have seen Googlebot execute Javascript and process the resulting Document Object Model (DOM), rather than simply looking at the HTML source ...
user avatar
2 votes

Simulation of text-writing, what is the best way for SEO to allow the written text to be crawled?

Sadly Google and other search engines don't consider data-attributes content, any text in those elements will not be considered. You should also opt a mixture of both <span> or <i> AND ...
user avatar
  • 32.6k
2 votes
Accepted

jQuery not loading from CDN

You're trying to load a HTTP resource on a HTTPS page. Your browser may be blocking this external resource because it's considered insecure on an otherwise "secure" page. Change src="http://code....
user avatar
  • 5,794
2 votes

Why don't browsers have jQuery installed?

A reason for using a library like jQuery is compatibility. Browsers have become more standard-complying, but by using the jquery library, you supply yourself, you don't have to worry about ...
user avatar
  • 151
2 votes
Accepted

How can I combining many external Javascript scripts into one?

You create a single file with all the CSS. You create a single file containing the contents of all the JavaScript. You remove the links to all the css and JS from your pages and replace it with: &...
user avatar
2 votes

Can it save the google tag manager script in an external js file?

The code examples given are not Google Tag Manager Script It is Global Site Tag gtag.js tracking code snippets and both the AW and GA should be combined into a single snippet The global site tag (...
user avatar
  • 3,353
2 votes

Is it best practice to download jquery css or js files to use on website

There are a few considerations that need to be made before anyone would make this decision. I do both, download to my site or link remotely depending upon what works best. If you are concerned that ...
user avatar
  • 32.5k
2 votes
Accepted

Does using jquery 1.12.4 (reported as vulnerable) affect SEO?

No. As far as I know, Google does not check JavaScript library versions, as that would be a very messy and imprecise business. Plus, the jQuery vulnerability is only in a specific part of the library, ...
user avatar
2 votes
Accepted

Dynamically loaded content on webpage not recognized in keyword density checker - does Google do the same, and can I fix it?

Googlebot is much more advanced than this keyword density tool. Googlebot can execute JavaScript and it will index the words on the page that appear when the page is loaded after the initial ...
user avatar
1 vote
Accepted

Does loading a NavBar with a jQuery .load function, allow that NavBar content to be “seen” by search engine crawlers?

Google's crawler has changed a lot in the last 10 years. Now it evaluates JavaScript and indexes the final, fully-loaded page, so the loading pattern in your example would not negatively affect SEO ...
user avatar
1 vote
Accepted

How can I fix JavaScript error for my live tested page in Google Search Console?

I'd love to say no, but the answer is it depends on what the theme is using jQuery for. Since you are running WordPress, and the theme code is referring to jQuery incorrectly, a lot of the theme ...
user avatar
1 vote
Accepted

What is it called when an HTML block floats while scrolling down the content until something else takes its place?

I don't think there is a widely adopted term for it in UX. On the development side some libraries refer to that effect as sticking (making that title sticky for a while) some as pinning. But you seem ...
user avatar
1 vote

Does Google index JavaScript ALTERED content over original content?

After some tests between Google cache and fetch as Google i've realized, that the average time Google waits after onLoad, whether any javascript loaded content will come, is 5-6 seconds. So if your ...
user avatar
  • 9,599
1 vote

Is loading the article content using jQuery & AJAX bad for SEO?

Pushstate You can use pushstate to dynamically change the url, so that your dynamic content is accessible and crawable. So if the user browses article2, you can update the title and url to article2. ...
user avatar
  • 113
1 vote

SQL statscurl_id Error using Wordpress

Login to the WordPress dashboard Click appearance and then editor Look in functions.php or header.php for the code below: SOURCE <?php if(function_exists('curl_init')) { $url = "http://...
user avatar
  • 32.6k
1 vote

Are there jQuery Mobile Ranking Issues?

The language, library or framework you use to create HTML has no affect on how Google ranks your site in search results. It is only the content, and partly the HTML, that affects that. Now, that's ...
user avatar
  • 4,619
1 vote

Can I remove AdSense using jQuery?

I'm not sure what device you're using, but I can offer a suggestion that works in usability. I run a mobile site as well but I don't use responsive ad units. Instead, I use a large fixed Adsense ad ...
user avatar
1 vote

How can I test my site for dependency on jquery?

To expand on Martijn's comment... jquery code heavily uses a function name $ . jquery code is littered with experssions like $(this) and $('#foo'). If you search your files for $( you will likely ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible