--> Blocking Bots From CSS and JavaScript Can Impact Rankings | Experience Lab - Online business creation and development guide for bloggers and startups

Blocking Bots From CSS and JavaScript Can Impact Rankings

Search engines rely on the content of a page, among other SEO factors , to determine how well should it rank in search results. Until recent...



Don't block bots from accessing CSS and JavaScript files

Search engines rely on the content of a page, among other SEO factors, to determine how well should it rank in search results. Until recently, they only worked on the textual content. But as usability began to grow as a ranking factor, Google started to render webpages much as a modern browser would - with images, CSS, JavaScript, and so on. Google has now updated their guidelines to inform webmasters that blocking search bots from accessing CSS and JavaScript files will now negatively effect the website's search ranking.


For optimal rendering and indexing, Google's new guideline specifies that you should allow Googlebot access to the JavaScript, CSS, and image files that your pages use. This provides you optimal rendering and indexing for your site. Disallowing crawling of Javascript or CSS files in your site’s robots.txt directly harms how well Google algorithms render and index your content and can result in suboptimal rankings.


Optimizing the process



Google indexing systems used to resemble old text-only browsers, such as Lynx. Now, with indexing based on page rendering, that technique is obsolete, and a more accurate approximation would be what a modern web browser sees, with all the CSS and JavaScript tweaks.





In order to ensure optimal crawling indexing, here are some things you can do.


  • Make sure your web design adheres to the principles of progressive enhancement, i.e. it is usable on a wide range of browsers and browsers that do not support certain features should still be able to use the content and provide basic functionality to the user

  • Optimize the page load process

  • Serving full JavaScript and CSS files to search bots might be demanding on the servers. Make sure your servers can take the load and are allowed that much bandwidth.



In order to make sure that GoogleBot can render your web pages properly, use the fetch and render tool within Google Webmaster Tools that Google introduced a few months back. Google back then said you should make sure not to block these files because GoogleBot is trying to render your full HTML.



Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.



Now, the updated guidelines read;


To help Google fully understand your site’s contents, allow all of your site’s assets, such as CSS and JavaScript files, to be crawled. The Google indexing system renders webpages using the HTML of a page as well as its assets such as images, CSS, and Javascript files. To see the page assets that Googlebot cannot crawl and to debug directives in your robots.txt file, use the Fetch as Google and the robots.txt Tester tools in Webmaster Tools.


Check out the announcement on Google Webmaster blog for more details.

COMMENTS

Name

Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
ltr
item
Experience Lab - Online business creation and development guide for bloggers and startups: Blocking Bots From CSS and JavaScript Can Impact Rankings
Blocking Bots From CSS and JavaScript Can Impact Rankings
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS8pqDwNZGpDkaqsSgeCMAOEoXlh0KTdgscjmAcecdIHlU65dVt0zn9V3uUfMNIbHBtiyB1s_Ype-i9D70U6Nn0BUua5J28B8CDmXXQjD0kxwaXMT1EWZbv_Y6yTZaWPYEKbcbvooLrQZ-/s1600/do+not+block+css+and+js.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS8pqDwNZGpDkaqsSgeCMAOEoXlh0KTdgscjmAcecdIHlU65dVt0zn9V3uUfMNIbHBtiyB1s_Ype-i9D70U6Nn0BUua5J28B8CDmXXQjD0kxwaXMT1EWZbv_Y6yTZaWPYEKbcbvooLrQZ-/s72-c/do+not+block+css+and+js.jpg
Experience Lab - Online business creation and development guide for bloggers and startups
https://www.experiencelab.info/2014/10/blocking-bots-from-css-and-javascript.html
https://www.experiencelab.info/
https://www.experiencelab.info/
https://www.experiencelab.info/2014/10/blocking-bots-from-css-and-javascript.html
true
2959477579779989044
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy