better performance: put inline js after loading of external head ressources