JavaScript Alert

JavaScript Alert

  
Hi, just a quick tip!

For some reason, when one adds a script to display an alert box, the alert is displayed before the page is rendered. This looks ugly but there's an easy fix. Instead of writing <script>alert('hello world')</script>, try <script defer>alert('hello world')</script>. That should work (not 100% guaranteed, there are some strange browsers out there...).