Skip to content
University of
Your cartAdd courses
Your cart is emptyAdd a course to start learning SEO.
Join free
Scenario labs: JavaScript SEO Blocked scripts and a noindex that JavaScript removes: JavaScript code illustration

Blocked scripts and a noindex that JavaScript removes

Intermediate About 25 min of work Worth 150 points 80 coins to play

An events site renders its listings with JavaScript, blocks its script folder in robots.txt and relies on a script to remove a noindex. Let Google render and index the pages.

Create a free account to start this lab

You get your own copy of the practice site, a code editor, checks against real crawler rules and a simulated search result.

What you will fix

Raunaq Live lists concerts and events in Hyderabad. The site is built with JavaScript: the first HTML of the events page holds only a loading message, the scripts live in /assets/js/, and robots.txt blocks /assets/ "to save crawl budget". The events page also starts with a noindex rule that a script removes once the listings load. A past event that was cancelled still answers with a normal page saying "This event is no longer available".

Goals

  1. Googlebot may fetch the scripts and styles the site needs to render.
  2. The events page carries its real listings in the first HTML and can be indexed.
  3. No page relies on JavaScript to remove a noindex rule.
  4. The cancelled event answers with a real error status.

The lab checks each goal for you. Hints lower the points a lab is worth, and showing the full solution makes it worth 0.

Ready to try it?