When should you use the 'defer' attribute in a script tag in HTML?