Optimize single page app mode, partial