cache result to fix WebKit framerate issue