Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Reiling115

2 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel560

@bybe let me clear that the hiding content from search engine using any technique is not cloaking.

Cloaking is; to show different version of your website to search engine and another version of same page to your website visitors.
@llya Knaup

I am not getting your exact question of hiding javascript, but i am trying to summarize the whole scenario.

See, there is no harm in hiding block or some content on website until your motive is to provide better web usability to your website visitors.

For example: Your website having some block of content that will be only visible when someone clicks on a readmore link or button. Now, it is not hard to hide that content using display:none or visible:false as a default as you are showing that content only if visitors want to read it.

I hope you understand my point...

10% popularity Vote Up Vote Down


 

@Turnbaugh106

No your way off. Noscript is a tag to be used when someone visit's your page that is not using JavaScript.

For example:

<script>
I am a awesome javascript
</script>
<noscript>
<p>You do not have JavaScript enabled so you can't use our awesome JavaScript</p>
</noscript>


So in the above example people with JavaScript enabled would execute the awesome JavaScript, Those people without JavaScript would see a message on the page which is obvious from what I put.

What you are looking for is a way of serving content based on IP and user agent, this is refereed to as cloaking and will most likely get your site smashed off the face of the earth and I strongly recommend you do not proceed as Google and other search engines are forever catching people out doing this since the day people first started doing it.

If you want pages not to appear in the index then you want to use robots.txt and noindex on your pages, but bare in mind this doesn't stop Google crawling your pages it means they don;t index it into the public.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme