<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>fouc on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/fouc/</link><description>Recent content in fouc on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Tue, 10 Sep 2019 10:55:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/fouc/index.xml" rel="self" type="application/rss+xml"/><item><title>Adding a body class in GatsbyJs to prevent flashing content</title><link>https://hugo.curtiscode.dev/post/gatsbyjs/add-body-class-gatsbyjs-fouc/</link><pubDate>Tue, 10 Sep 2019 10:55:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/gatsbyjs/add-body-class-gatsbyjs-fouc/</guid><description>Recently I&amp;rsquo;ve been working on a GatsbyJs project which includes the use of a theme where a body class is used to prevent flashing of unstyled content (FOUC).
This post aims to walk you through how to add a &amp;ldquo;no-js&amp;rdquo; class to the body server-side with GatsbyJs, and then remove it on client load.
What is FOUC? This concept isn&amp;rsquo;t new and has been around for at least a decade, as Paul Irish&amp;rsquo;s post shows.</description></item></channel></rss>