Updates to the status badge

Monday, 17 November 13:47 UTC
Enhancement Changelog

We're excited to share some improvements to the Sorry™ status badge script that make it more reliable and customisable.

Unless you customise the new update frequency, you don't need to make any changes to your existing installation - the other improvements work automatically.

What's New

Customisable Update Frequency

You can now control how often your status badge checks for updates. By default, badges update every 5 seconds, but you can adjust this to suit your needs.

How to use it: Add the new data-polling-interval attribute to your script tag:

<script 
    src="https://status.sorryapp.com/script.js"
    data-polling-interval="10000"
    defer  
    async>
</script>

The number is in milliseconds (10000 = 10 seconds). The minimum allowed is 3 seconds to be respectful of server resources.

Better Network Resilience

The badge script now handles network issues and server problems more gracefully.

What changed:

  • Badge images are now preloaded before display, preventing brief flashes of broken images or loading indicators when the network is slow.
  • If the status server is completely unavailable, your badge stays visible, showing the last known status instead of showing a broken image as it did previously.
  • When connectivity issues resolve, the badge automatically resumes updating without requiring a page refresh.

Why this matters: Your status badge will remain visible and functional even during network hiccups and server outages, providing a better experience for your visitors.

Behind the Scenes

We've also made several technical improvements:

  • Added comprehensive browser-based testing to ensure reliability.
  • Improved the badge update mechanism to be more efficient.
  • Enhanced error logging for easier troubleshooting if issues occur.

Questions? Check out our documentation or reach out to our support team.

Avatar for Robert Rawlins
Robert Rawlins