Making a 10-track music catalog readable without JavaScript

By ·

Nocturnal Wave Lab publishes original ambient music. I moved all 10 track cards into the homepage HTML so the titles, durations, artwork, and Spotify links are available on the initial request. JavaScript still handles the preview player.

What changed

The homepage response previously had an empty catalog container. Browser code fetched no additional catalog data, but it still had to run to create the cards. I wrote the cards into the HTML and kept their track identifiers so the player could attach to the same elements.

The Cozy Soundscapes, Vol. 1 album page now gives the release a permanent URL with production notes, a track list, and native audio previews.

How to reproduce the check

Request the homepage directly over HTTP and count the track cards before any browser code runs.

curl -fsSL https://nocturnalwavelab.com/ | grep -c 'data-track-id='

The count was 0 in the HTML before the change and 10 afterward. The command checks whether the cards appear in the response body. Opening the page with JavaScript disabled also lets you follow each track’s Spotify link.

Visit Nocturnal Wave Lab · Read my CV