Improved loading css and javascript