Reintroduced onload screen size detection