script: Don't do anything before the window size comes in.

This fixes the `getBoundingClientRect()` content test.

r? @jdm