Add SSR support by checking to render server-side or client-side. Also made key offsets as trade-off of accuracy and pixel-perfectness.