Scripts question
-
My question is whether search engines will crawl the page before or after scripts run on the page. I have a H1 that will be replaced with a canvas by jquery script. Will search engines see the H1 or the canvas?
-
I mean 'view source' not generated source. What I tried to say is that Google will see exactly the same code as you do when you right click on a page and click 'View source code'. So to answer your first question _' I have a H1 that will be replaced with a canvas by jquery script. Will search engines see the H1 or the canvas?' _Just check the source code of your page to find out.
Javascript/ajax can cause problems for Google to index the content as far I know, but I'm not an expert in this.
-
Sorry but I'm still a bit confused.
By ”this code is equal to what you see in ’view source’”, do you actually mean “view source” or “view generated source”? Because “View source” would imply that Google sees the un-scripted html.
Could you really run javascript on a server? Do you mean that our server will run a client javascript before sending it to Google..? (Let’s say we add an A href tag dynamically by javascript, will this A tag be crawled by Google?)
Thanks!
-
Google doen't run your script, this happens on your server. When Google wants to crawl a page, it requests this url from your server. The server will run the scripts and deliver the final html to the Google crawler. This code is equal to what you see in 'view source'.
I hope this explains it a bit more.
-
Thanks, but can you please be more specific? Do you mean that search engines runs the scripts, then sees the final html – as in the html after scripts are executed? Or that they don’t run the scripts, so the “final html” is what we see in “view source” before the page is “finished” and scripts are executed?
Seems strange that Google would execute scripts. Wouldn’t that be a security risk?
-
Hi,
Search engines will index the final html, not the scripts that generate the html.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Question For SEO Companies From An On-line Retailer
When employing an SEO company what should I be looking for? When I go to a companies website I look for how many keywords they have ranked on Semrush. Most of the companies that I have looked at do not rank very many. Saying most I am talking about 10-12 companies. There was one company that had a lot more than anyone else but their reviews were awful. Then I look at their clients websites to see how many keywords they have ranked and this is where I am baffled. Quite a lot of them especially retail sites with lots of products have very few keywords ranked and my belief is that the more related keywords that you have ranked the better you will do. I also look at how the thier organic traffic is doing over a number of months. what surprises me most is that companies are advertising clients websites where it looks like traffic is climbing and then all of a sudden there is a big drop. Am I missing something in order to find a company that will do what we are paying them for? Thank you in advance.
On-Page Optimization | | Palmbourne0 -
Quick H1 Above the Fold Question
I was wondering if the H1 for this page was alright even though it is below the fold: http://www.seniorplanning.org/assisted-living-phoenix-arizona/. Any suggestions/comments would be very helpful. Thank you!
On-Page Optimization | | JacobEdward0 -
A Hummingbird Question
So with Google SERPs looking for more customer intent and especially to direct questions eg, How much does a x cost? Where can I find x etc - is it good practice to create a bank of Q&A's on site or is it sufficient to have good quality content on the subject matter stating the costs of x and where you can find it written in a customer friendly manner? Will a bank of Q&As add any value if they directly answer the most likely search questions? Thanks Ash
On-Page Optimization | | AshShep10 -
Question About On Page Grades
New to the whole SEO game in some aspects and wanted to know about on page grades. Some of the pages I got ranks of F for are actually in the top 10 in Google. Could anyone help me to explain way these pages/tags are F's with those rankings?
On-Page Optimization | | BlackEnterprise0 -
SEO Location Pages - ALT Image Tag Question
Hello Guru's, I have a Hire Website whereby you can rent products online. I have created different Location pages for these which are in essence the same pages page but with different location specific urls, title tags , on page content etc etc. This helps me to rank for local search. These location pages also display 20 products per page. My question is Should I make the ALT IMAGE TEXT location specific for each of the 20 products . Example - Steam Cleaner Rental in "location" or should I only amend a few of the Atl Image Texts to be location specific. I don't want to come accross as spammy in google eyes but I also don't want to be seen as having duplicate content , images etc etc What do you think ? thanks Sarah.
On-Page Optimization | | SarahCollins0 -
Hi . I have a question regarding a surge in 302 temporary direct errors following reactivation of my site reviews.
Hi. i submitted the following question to the support team at volusion regarding a large number of 302 temporary redirects on the SEOMOZ crawl of following the reactivation of product reviews on my website. Here is the question and their response. Any opinions. Thanks TRANSCRIPT: Hi Howard, Looking at the link you have referenced, this page is unable to be accessed unless you are logged into your site, so SEO isn't applicable for the page. We would not be able to change the 302 redirect for this page. Please don't hesitate to contact us if you have any further questions. Thanks,
On-Page Optimization | | mrkingsley
Meredith G.
Here for you 24x7x365 Volusion Support Check out our online support: http://support.volusion.com | 4 days ago (102hrs ago) [8/19/2012 10:06:00 AM] by Customer | | Hi . I had a report of 302 temporary redirects when SEO moz did a simulated site crawl. This is an example of the address of one of the many 302 temporary redirect errors which I think consume link juice or have some type of negative effect on SEO. http://www.mrgrabbar.com/reviewhelpful.asp?ProductCode=GT100&ID=562&yes=yes Since it is a live link I cannot seem to redirect it with a 301 redirect in the redirect manager. Is there anything I can do to handle these temporary redirects. They only are appearing now since I reactivated my reviews and I am concerned about the SEO effect that this may soon have.0 -
Website title question
Say you have a website url of a rather competitive keyword phrase, would it be beneficial for me to go ahead and name my site title the same as the url? And also should my site title go through every page, or should i consider having slight variations throughout the pages? for example: page title | site title or page title| slight varation of title on sub page? **edit - to further expand on the question a bit also, if my google places has the company name on _there - would it be effective to go ahead and use the company name in my site title? _ _Also if i have the main keyword in the breadcrumb as the home, does that effect my SEO credibility if it shows up on all the pages? _
On-Page Optimization | | tgr0ss0 -
I have a question about on page links or duplicate contant
Ok help me out here friends. I’m working with the warnings and errors for my site. I have two problems that relate to each other and I want to know if you had to choose what problem what would you choose. I’m running into some duplicate content and title errors because under categories for my products there are so many products that it creates more than one page and with each new page it has the same title or same content on the page. I tried to make this less in some cases by showing more products per page like 100 items and in most cases per category it will only show one page now. Now some times there’s still more than one page and also this creates too many links now on that category page. So I think I can get rid of all the to many on page links but it will make more pages and duplicate content and title tag. What would you guys do?
On-Page Optimization | | Dataken0