phast.js before render event