move loaded resources to footer for perf