some error handling when on device
cross browser issues (raf, dpr)