Improve script load on hierarchy of page