With the HTML5 data attribute we can remedy this and even use the capability for other things.
// Loading phase
// Success phase
// Error phase
<p class="msg" data-loading="Getting your stuf..." data-success="Ok, you're all set" data-error="Oh no! Something wen wrong">Messages...</p>