performance tweaks in render()
using window.performance shim