Fix slow loading of Web UI.
Merge pull request #383 from LipuFei/web-ui-fix

Slow Web UI fix