Frontend: change the resize() call from render() to attach(), this fixes chrome undesired behaviour