SSP-1269 Optimizing javascript UI loading