made several changes to reduce the front end page weight.
Merge branch 'minimize_page_weight_1'