Okay to have text in javascript?
-
There are so many conflicting opinions out there, one of which I recently read indicated that if you are putting your keywords in javascript, the new google update would have an issue with this.
If you want to keep a page clean looking and have visitors click to read more text, is the opinion here that this is okay or an issue? The main purpose of adding text in javascript would be to have enough content on the page without making it look cluttered.
Webmaster tools says that when you have hidden text in javascript, the same content should be placed in a no script tag?
Thanks.
-
The client wants to remove existing content to create a cleaner look on the page. I suggested we find a way to keep that content to avoid losing the traffic it generates and turning the page into a low quality page. My thought was to display a portion of the content and have the visitor click to view the rest.
-
What I've found is that it is okay to have text in JavaScript and Google/Bing will probably index that content if the JavaScript is not too complex. I've seen it not index more intense JavaScript or scripts that require user interaction. You can put alternative text in noscript tags and that seems to work okay.
Typically though, I recommend putting the super important optimized text in regular old HTML instead of JavaScript. That way you are 100% certain that Google/Bing can crawl and index that content. Plus, it is typically easier to manage content in HTML.
However, what you said about the clutter makes it sound like your JavaScript is adding effects to text already in the HTML. Is that the case? For example, you have a div on your page that contains some text. By default, it has the style attribute "display:none;". When a user clicks or takes some action, you change that display attribute to shows previously hidden text. Is that what you are doing?
If that is what you are doing, or something like that, then you have text in HTML not JavaScript. One easy way to check this is to disable CSS and JavaScript then load your page. You want to make sure you can see the content you want Google/Bing to index.
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
-
Text that appears when hovering over navigation tabs
Hi, I have a Wordpress website and want to delete or edit the text that appears when I hover over my navigation tabs. In my case, the text is always the same as the page title, but I don't know where to edit it separately. When I change the title of a page that is in the navigation, the text that appears changes too. So the general setting is that this text is the same as the page title. Does somebody have an idea where to edit this? Thanks!
On-Page Optimization | | Mat_C0 -
Using Hidden Text Behind the Logo as H1 is good seo practice?
Hello Experts, For my website if I use use logo as h1 for homepage but that logo will not be actually h1 but hidden text ( text is my brand name or website name) behind will be h1 so it is okay to use in this way? Using hidden text as H1 is fine as per google? Thanks!
On-Page Optimization | | pragnesh96390 -
Is this still considered true about INTERNAL anchor text? "Penguin seems to be targeting overly aggressive anchor text (both internally and externally), especially from low-quality sources."
Recently I've heard a few people say now it's okay to be aggressive with internal linking. So a link from mydomain.com/news to mydomain/widgets can use spammy anchor text like "best green widgets in California" that are an obvious problem for links coming in from external site. Which is accurate?
On-Page Optimization | | corlin0 -
Home Page Text Placement - In Widget?
My client has a blank homepage that showcases his work in a slideshow. As a result, his homepage will not rank. I've created landing pages and they have started to rank, but he is not a fan of them. He wants to add a widget below the menu, essentially where you have to scroll down to see it (no one will ever see it) with the text/onsite optimization we need to get him to rank. This will leave him with his blank homepage that he likes. My gut reaction is that the text needs to be in the actual page, not a sidebar widget. What do you think? Will this method work?
On-Page Optimization | | columbiaseo0 -
Can "window.location" javascript on homepage affect seo?
Hi! I need to add a splashpage to my wordpress site. I use "window.location" javascript on the homepage to redirect on the splashpage (controlled by cookie to redirect only for the first access). Can this technique affect the SEO on homepage? Thanks in advance!
On-Page Optimization | | StudioCiteroni0 -
Removing text from Homepage - Bad idea?
Hi Mozzers, I've just read this great article: http://moz.com/ugc/how-to-build-a-great-online-fashion-brand-34-things-that-really-amazing-fashion-retailers-do I'm working with my wife on a small (hopefully, growing) fashion website www.vintageeheirloom.com One of the points was not to directly sell on the homepage, rather draw customers into different areas of the site. Seems good advice and it's followed by many big brands online. As a small company, doing fairly well for some targeted keywords, do you think it would be a good or bad idea for me to remove most, or all of the text on my homepage. The main emphasis of our site is vintage Chanel and using the tool nTopic I score 99% relevancy for 'Vintage Chanel'. Removing would certainly affect this. Obviously I could amend my Vintage Chanel shopping category to include all this. I'd be grateful if you have any thoughts / similar experience. Thanks ! Kevin
On-Page Optimization | | well-its-1-louder0 -
Anchor text on outbound links on a blog, relevancy detrimental or positive?
We have a blog related to computer support, and we have been using guest posts and promotion of those posts to boost freshness and rankings of the blog. We have been restricting outbound links to prevent words such as 'computer repair, 'computer support' etc, because we were under the impression that if we want to rank for those words, we should only allow INCOMING links with that anchor text, and that outbound links from the page, would rob the other parts of the site of the link juice this page provides. My question is, is this wrong? Should I freely allow outbound links on my blog page that contain anchor text that I my self am trying to rank for? Or was I correct initially? Current the anchor text is in 'related' industries, such as mobile apps, technology news, etc...things that google might think are 'related', but not exactly what the site is about.
On-Page Optimization | | ilyaelbert0 -
Should I put a No follow on each link in a Javascript dropdown menu?
I have a javascript dropdown menu on every page of my site. It lists all the wineries I write about and sell. About 300 links. I've been told that google doesn't like so many links on a page, but that it doesn't spider javascrpt. Then I hear that it does. Am I being penalized by all the links? Or does the spider really not see them? I don't want to give up my javascript menus, unless I have to. Should I put a no follow on each link inside the code? And on the other hand, am I losing google juice by not letting it see all the pages on my site that I link to in the javascript menu? Thanks in advance for your help!
On-Page Optimization | | JeanYates0