Trying to optimize onload speed