I've noticed that github doesn't expand large files (like `package-lock.json`) by default, while gerrit does.
For example, see the same commit in github ([[ https://github.com/wikimedia/mediawiki-extensions-AdvancedSearch/commit/3fb16c3bd5d71c36c8f94c662e9ba21da76ba940 | 3fb16c3 ]]) and gerrit ([[ https://gerrit.wikimedia.org/r/c/mediawiki/extensions/AdvancedSearch/+/618014 | 618014 ]]).
Videos: [[ https://youtu.be/ZkzKWf0rLaE | github ]], [[ https://youtu.be/LCYLag9JVHI | gerrit ]].
My usual workflow (in gerrit) is to open a patch and click `Expand All`. It works great, unless there's a `package-lock.json` file. Then the page becomes unresponsive for a while (while the huge `package-lock.json` is rendered), and any files under it are not rendered, even after `package-lock.json` is.
Maybe it makes sense to expand some files, but `package-lock.json` is not supposed to be edited by humans, so it's very unlikely that you would actually want to review the file.