I love mules: Use JS to enhance the user experience and SEO

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

JS can be said to be a very good web page, but a lot of new friends do not understand, all feel JS bad, this is from the sentence: JS on the search engine unfriendly. A lot of new people wrong understanding this sentence, JS search engine is not friendly is said JS things can not be searched crawl, the important things in the page do not put into JS, it is because the contents of JS search can not crawl, we can use it.

Control CSS Styles

Many times we need some special methods, such as hiding some do not want to let users see things, but want to let the search to see, or to highlight something but do not want to make the search too prominent, and these things directly with the definition of CSS will be found by search engines, with JS to define OK. To give a simple example, the current one-page Taobao customer site application of more, these websites want to show the ads to the user and not to the search engine, but the content of their own does not want to see the search and users can not see, this time need to use JS, the ads directly with JS to do, and the content of the site to use JS to hide, Look at the page code:

The following are the referenced contents:
<div id= "YC" >

Page content

</DIV>

To see the reduction of the JS code:

the following references:


document.getElementById (' YC '). style.display= ' None ';

This is very good to achieve a balance between users and search engines, but this is pure garbage station practice, of course, some regular stations can also use these techniques, as to how to use, according to different websites to do.

Ii. Enhancing interaction with users

For example, some registration, landing and so on according to the current user's state and change, these things must be done with JS, and some generate static web site, home or channel page has called the Forum's posts, if the homepage does not regenerate, these posts will not be adjusted out, This time can use JS program to control the production of the first page, to reach the home page how long time automatically generation, which is very beneficial to users and search engines.

Iii. Controlling Export Links

Sometimes you need to export a lot of links to other sites for some reason, this may be very unfavorable, such as some classified information site check bus, check train and other convenient tool links, need to export a lot of links, this time completely with nofollow is also very bad, with JS is much better.

The use of JS is still a lot, but the difficulty of using a good JS is too technical, after all, not many people can play JS very skilled, but, as a webmaster, some basic JS tips or should learn to master the good. This article by Chizhou seo@ I love Mule (Newborn power Network marketing team) to provide, URL: http://www.52luo.com/, welcome reprint, Reprint please indicate the source of the link.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.