Remove components and optimize code loading controller