Skip to content

Commit

Permalink
Randomise tagline
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Jul 14, 2023
1 parent c95fba8 commit fe1a3fa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion code-reviews.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ main: "https://res.cloudinary.com/csswizardry/image/fetch/f_auto,q_auto/https://
permalink: /code-reviews/
---

**Your website is slow. I can tell you why.**
<script>
const taglines = ['Your website is slow. I know why.',
'I find the problems that the last team couldn’t.']
const tagline = taglines[Math.floor(Math.random() * taglines.length)];
</script>

<p><strong id="jsTagline"></strong></p>

<script>
const taglineElement = document.getElementById('jsTagline');
taglineElement.innerText = tagline;
</script>

You could be leaving hundreds of thousands of dollars of revenue on the table
every year due to a poorly- or un-optimised website. Slow websites are one of
Expand Down

0 comments on commit fe1a3fa

Please sign in to comment.