onload() and resize() is now added dynamically in <head>