Hot answers tagged

5 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 ...
Bronwyn V's user avatar
  • 3,423
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 ...
Vasikos's user avatar
  • 573
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: ...
Jeff Wilbert's 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 ...
Ivo van der Veeken's user avatar
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....
Andrew Lott's user avatar
  • 5,864
2 votes

Protect Javascript code from being stolen

Three options to "protect" your .js: You can use a couple of different techniques for this but you have to understand that none of them represent fullproof protection. (They are only deterrents). 1) ...
Bangkokian's 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 ...
Simon Hayter's user avatar
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: &...
Stephen Ostermiller's 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 (...
Bronwyn V's user avatar
  • 3,423
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 ...
Stephen Ostermiller's user avatar
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, ...
Maximillian Laumeister's user avatar
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 ...
closetnoc's user avatar
  • 32.8k
1 vote

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

Yes and no. When you run anything from your own site, you are in control. The library can also be optimized for delivery, that is, you can modify the code to reduce size or otherwise speed delivery. (...
Rob's user avatar
  • 4,623
1 vote

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

As with any link on any website: if the link no longer exists, the link will be broken, dead, etc. But don't worry: if ever the jquery library would go offline, there are many places where you could ...
Els den Iep's user avatar
1 vote
Accepted

How to avoid same page loading of auto-complete results from hurting SEO

Google doesn't want to index anything on your site that looks like search results. See Matt Cutts: Search results in search results. You should using some mechanism to keep Google from indexing the ...
Stephen Ostermiller's user avatar
1 vote

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

Yes. You can load it from an external file like any JS. However, do be aware about loading order. If you need the GTM to pick up on events that occur before the page has finished loading, calling ...
GeoffAtkins's user avatar
  • 2,249
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 ...
Evgeniy's user avatar
  • 10.1k
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. ...
Santosh's user avatar
  • 113
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 ...
Maximillian Laumeister's 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 ...
Prasad Ajinkya's 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 ...
user2513484's user avatar
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://...
Simon Hayter's user avatar
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 ...
Rob's user avatar
  • 4,623
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 ...
Mike -- No longer here's 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 ...
Stephen Ostermiller's user avatar

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