{"push_id":1030822270,"size":3,"distinct_size":3,"ref":"refs/heads/master","head":"d59c6de7806680eaf4b56acfdae61068092cb5ef","before":"8219a8ad119fa0b69d52a7ac1788f8c5746c6800","commits":[{"sha":"d52d74a22ef382c5da04cd237f0eb40debe3549b","author":{"email":"7b10a9ed9f70e64c30b07607a671ae61c33f14c8@couchbase.com","name":"dave-finlay"},"message":"MB-18289: concatenate UI app javascripts\n\nThis change generates a new file, index.min.html, at build time\nthat will be vended to users in place of index.html at runtime.\nindex.min.html is a \"minified\" version of index.html (at least\npartly so) allowing the app to load and refresh more\nquickly.\n\nMore kinds of minifications will or may follow but in this\nchange we do the following: all ns_server \"application\" javascript\nfiles (those that reside under the \"app\" directory in\npriv/public/ui) are concatenated into one file which. This saves\napprox 160 separate browser requests and about. In tests\nusing the Developer Tools in Chrome this demonstrated a 3-4 second\nsaving in page load time (down from 4-5 seconds to 1-2 seconds)\non a network with 100ms round trip time, which was quite\nnoticeable.\n\nWe may want to introduce a real minifier. I've experimented with\nhttps://github.com/tdewolff/minify and it looks to be simple to\nintegrate with our build toolchain and it has support for\nwhitespace minification of Javascript (which we could use),\nplus minification of other web mimetypes (HTML, CSS, etc)\n\nmenelaus_web changes to vend index.min.html by default when\nindex.html is asked for, though index.html can be vended if\nthe use_minified Erlang application env var is set to false.\nThis is supported for cluster_run automatically, though if one\nis not doing UI work one can run cluster_run with a minified UI\nby using the new --minified cluster_run option.\n\nOther changes we should make:\n1) change to use minified versions of our library code in\n   index.min.html\n2) add longer cache controls to our library code\n3) support a head.frag.min.html for pluggable components so\n   they too can do their part for UI performance.\n\nChange-Id: I611b147e79b2ce12d6321c221a0379bb08ce54b0\nReviewed-on: http://review.couchbase.org/61689\nTested-by: Dave Finlay <dave.finlay@couchbase.com>\nReviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>","distinct":true,"url":"https://api.github.com/repos/membase/ns_server/commits/d52d74a22ef382c5da04cd237f0eb40debe3549b"},{"sha":"dd7efc73ffd474bd7d89400d598649e1d6213633","author":{"email":"7b10a9ed9f70e64c30b07607a671ae61c33f14c8@couchbase.com","name":"dave-finlay"},"message":"MB-18289: Don't aggressively load all angular templates\n\nIn testing I observed (as have others) that aggressively downloading\nall (or most) of our templates negatively affects initial UI\nperformance. It takes a bit longer to render the UI since there are approx\n100 template files being downloaded and the first couple of screens (the login\nand the overview page) just new a handful of templates.\n\nI experimented adding all the templates to the index.min.html file\ndirectly, but this makes the initial download sluggish since you're\nstill downloading more than you need. So I settled on just downloading\nno templates eagerly and rather having them be fetched as one walks around\nthe UI.\n\nChange-Id: I8b592d77e0a3512383de68a958f24f16f1882929\nReviewed-on: http://review.couchbase.org/61550\nTested-by: Dave Finlay <dave.finlay@couchbase.com>\nReviewed-by: Pavel Blagodov <stochmail@gmail.com>","distinct":true,"url":"https://api.github.com/repos/membase/ns_server/commits/dd7efc73ffd474bd7d89400d598649e1d6213633"},{"sha":"d59c6de7806680eaf4b56acfdae61068092cb5ef","author":{"email":"a39d4b9bcc46f2bd25095c155e4ed30dab25a937@gmail.com","name":"Artem Stemkovski"},"message":"bring delete_user and password_change audit in line with latest RBAC\n\nChange-Id: Ia1670b1328b3cfca8b06816e69c7d788a89e3fe8\nReviewed-on: http://review.couchbase.org/61735\nReviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>\nTested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>","distinct":true,"url":"https://api.github.com/repos/membase/ns_server/commits/d59c6de7806680eaf4b56acfdae61068092cb5ef"}]}