loads html first then load assets