Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Setting title tag with javascript/jquery
- 
					
					
					
					
 Hi there, I'm looking for some advice. I've recently implemented a few jQuery functions which gets specific content from the page and then sets the title and description. See working example here. It seems to work fine but my question I have is whether Google bots can read it and whether it might actually hinder my SEO efforts? Any advice would be really appreciated! Peter 
- 
					
					
					
					
 I don't think your javascript usage is helping you. I am not sure as to why you would nofollow something you sought to improve for SEO. As to speed, you have more issues than your provider's server. Download Google Insights and run the page speed tool. You will see what I mean. Best, 
- 
					
					
					
					
 Robert, Thanks for the reply! The main reason for changing the title/description tags with javascript was to make the pages more indexable (and readable on google). Would you say these pages will provide any SEO benefits to the rest of the website? Or would it be better to set a nofollow tag? I will have a look into speeding up the property pages however it's most likely because the information is being rendered on our software providers server which at the same time is probably handling 1000's of other requests aswell  
- 
					
					
					
					
 Thanks for the reply! Unfortunately I cannot do this in PHP as the property details are rendered using XML and I don't have access to the files as it's saved on our software providers server (they have also said they would not know how to implement this) - I also have little to no experience with XML so that's why I thought i'd try javascript. 
- 
					
					
					
					
 Peter I agree with Jon, Also, your page is loading quite slowly when I use Google Pagespeed insights. You might want to run it on the site and just look at what it is suggesting. Hope this helps you out, Robert 
- 
					
					
					
					
 No, Google won't see it - you're meant to make your site accessible to those with JS turned off. Check using GWT 'fetch as Google'. You could, however, do this with PHP. 
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		How long does Google takes to re-index title tags?
 Hi, We have carried out changes in our website title tags. However, when I search for these pages on Google, I still see the old title tags in the search results. Is there any way to speed this process up? Thanks Technical SEO | | Kilgray0
- 
		
		
		
		
		
		Can OG titles be used as a substitute for Meta titles
 We use og (open graph) titles in lieu of meta titles. Is there any downside to using just one. Should we be using both og and meta titles on our page. Appreciate any insight. Himanshu Technical SEO | | patilhimanshu0
- 
		
		
		
		
		
		Same H1 & H2 Tags
 Is it bad to have the same H1 & H2 tag on one page? I found a similar question here on the moz forum but it didn't exactly answer my question. And will adding "about" on the H2 help, or should we avoid duplicate tags completely? Here is a link to the page in question (which will repeat throughout this site.) Thanks in advance! Technical SEO | | Mike.Bean0
- 
		
		
		
		
		
		How to set up internal linking with subcategories?
 I'm building a new website and am setting up internal link structure with subcategories and hoping to do so with best Seo practices in mind. When linking to a subcategory's main page, would I make the internal link www.xxx.com/fishing/ or www.xxx.com/fishing/index.html or does it matter? I'm just trying to avoid duplicate content I guess, if Google saw each page as a separate page. Any other cautions when using subdirectories in my navigation? Technical SEO | | wplodge0
- 
		
		
		
		
		
		Do I use /es/, /mx/ or /es-mx/ for my Spanish site for Mexico only
 I currently have the Spanish version of my site under myurl.com/es/ When I was at Pubcon in Vegas last year a panel reviewed my site and said the Spanish version should be in /mx/ rather than /es/ since es is for Spain only and my site is for Mexico only. Today while trying to find information on the web I found /es-mx/ as a possibility. I am changing my site and was planning to change to /mx/ but want confirmation on the correct way to do this. Does anyone have a link to Google documentation that will tell me for sure what to use here? The documentation I read led me to the /es/ but I cannot find that now. Technical SEO | | RoxBrock0
- 
		
		
		
		
		
		Double Slash // in URL
 My client is using double forward slahes in URL like this "//" is this affecting SEO? Technical SEO | | yanaiguana1110
- 
		
		
		
		
		
		SEO plugin by Yoast messing up my title/meta description
 Hey guys, I'm having some issues with my wordpress blog, and I believe SEO plugin by Yoast could be the one causing it. I have set a title for my wordpress blog, and a tagline. This was set in dashboard > settings > general Under "titles and metas" > home in the plugin it says, title: %%sitename%% %%page%% %%sep%% %%sitedesc%%, and meta description is blank. The reports on seomoz says my title is title+meta description - making it to long (to many characters). What could be the issue here? Thanks in advance! Technical SEO | | danielpett0
- 
		
		
		
		
		
		Home Page .index.htm and .com Duplicate Page Content/Title
 I have been whittling away at the duplicate content on my clients' sites, thanks to SEOmoz's pro report, and have been getting push back from the account manager at register.com (the site was built here and the owner doesn't want to move it). He says these are the exact same page and he can't access one to redirect to the other. Any suggestions? The SEOmoz report says there is duplicate content on both these urls: Durango Mountain Biking | Durango Mountain Resort - Cascade Village http://www.cascadevillagehotel.com/index.htm Durango Mountain Biking | Durango Mountain Resort - Cascade Village http://www.cascadevillagehotel.com/ Your help is greatly appreciated! Sheryl Technical SEO | | TOMMarketingLtd.0
 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				