Bug 993427 - Make getVisualData non-blocking

Are these 2 lines necessary, it should be updated in `init()` and `resize()`, right?