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
-
Background Images and ALT text
We pretty much exclusively use background images for our sites. How do I add in alt text? I tried a Google search for this issue and the best answer I could find was "Use the 'title' tag in the containing div", but that was from 2010. Is there a better way to do it? And no, we're not going to switch to using standard images, because background images are way more slick for UX.
On-Page Optimization | | MichaelGregory0 -
How defined does the anchor text need to be for a domain url?
Ok, I'm looking to clean up my domain with irrelevant Anchor text linking to specific URL's. Whether, it's my root domain or a particular product URL. I'm finding a wide variety of terms (anchor text) pointing to my homepage, category and finally my product pages. Example, the Anchor text "Paragon Print Systems" is pointing to my homepage "barcodefactory.com" does this hurt my homepage enough to either have the link/anchor text removed from linking to my homepage? thanks much!, Warren
On-Page Optimization | | Warren.W0 -
Do javascript pseudo-links dilute link juice ?
Hi, On our ecommerce, we use multiple pseudo-links for the layered navigation (to filter by color, site, etc), so that google doesn't crawl every combination of filters. I know this kind of links don't pass link juice and don't get crawled (provided you hide the target urls in your javascript). But, as there is an "onclick" property, I'm afraid that google could understand that these are links, and treat them the same way as nofollowed links (not following them but diluting link juice anyway). Do you know if this is the case ? Thanks,
On-Page Optimization | | Strelok0 -
ECommerce & Reviews when generated by 3rd Party uses Javascript
Hi all, I am trying to optimize our product pages and I know one of the important factors is showing customer reviews. While we have plenty of reviews to show they are collected by a third party (Shopper Approved) and the way we have been told to display them on our pages is via a Javascript. My question is, is this sufficient for search engines to be able to crawl and interpret the Javascript or are we missing out on user generated content since it is displayed via Javascript. If so are there best practices or recommendations to help us? Thank you!
On-Page Optimization | | MyFairyTaleBooks
Dinesh
http://www.MyFairyTaleBooks.com <- this is the site in question if it helps.2 -
E-commerce On Page Concern - Links and Anchor Text
Hi, how you doing? I have a set of very specific questions or concerns about anchor text and linking on an e-commerce category page. I was wondering if you could give your opinions and counsel. I own an e-commerce store about steel construction products. I have several category and product pages. One example of my categories is this. URL http://aceromart.com/Losacero-25-Ternium.aspx My concerns or questions: I have several technical specs or sheets. Which i include the link on the right part in "Informacion Adicional". How should i link those? I am bit worried on the anchor text. Should i use something like [download "product" technical sheet] or just [technical sheet of product] . I dont want to cannibalize, but i also want to appear as descriptive as possible. what would you recommend? The same thing happens on my videos. How should i link my videos? Is there a best practice? **what would you recommend. ** Thanks in advance for your opinions!
On-Page Optimization | | JesusD0 -
Is there a recommended character limit for alt text tags?
I've searched around for a maximum number of characters to use when writing alt tags, but not seeing anything more than "don't keyword stuff." Is there a recommended number of characters?
On-Page Optimization | | KimCalvert0 -
Implementation of Rich Text Snippets on a e-commerce site
Hey Guys I'm working on the implementation of Rich Text Snippets , I have basically 3 types of page Product Page Category Page Homepage On the product page I'm going to implement the product scheme which seem relatively straight forward , I'm struggling a bit understand what can be implement on the homepage & category page if anything For the Homepage I was planning to use the organisation scheme http://schema.org/Organization using the object thing my question is can you use the image tag to try and get google to display our brand logo ? just like the author & recipe etc.. we sell branded goods so on each ideally for branded page we provide brand description and brand logo http://brokenscene.com/uk/brands/famous-stars-and-straps.html can you use any snippets or is it best to focus on just the products ? Ben
On-Page Optimization | | elbeno0 -
Can bad text URLs hurt pages?
If you have some pages that contain plain text URLs (not anchored links) that used to be good URLs, but are now bad, either because the website shut down or because it has been acquired by someone else and is now parked (or worse) - are those URLs enough to cause quality problems? For example: This information was brought to you by Waymaker http://www.waymaker.net These aren't the only ones. And yes, I know I should fix them, but there are probably 10,000 pages like it. I will fix them, but its not something I can do in a few minutes. (this one is easy to fix programmatically, but others are a lot more complex) So my question is: do you have actual experience that these are bad enough to cause ranking problems (making them low quality)
On-Page Optimization | | loopyal0