Set adding of resize event into onload event callback