widget module loads optimization