We have listed many background scripts in manifest.json. https://codesearch.chromium.org/chromium/src/ui/file_manager/file_manager/manifest.json?l=198 Concatenating them into one script will save the resource ids for scripts, and can reduce some overhead.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d19f48706428300449ca4aed64b764bd23c69da7 commit d19f48706428300449ca4aed64b764bd23c69da7 Author: fukino <fukino@chromium.org> Date: Tue Aug 23 06:08:46 2016 Files app: Concatenate background scripts. Concatenate scripts to: - Reduce HTTP requests in background script. - Save resource IDs. - Make it easier to divide JS files into smaller ones. The size of file_manager_resources.pak increases by 24 KB (4,187 KB => 4,211 KB), but I think it worth doing. BUG= 639225 , 636289 TEST=run browser_tests Review-Url: https://codereview.chromium.org/2261043003 Cr-Commit-Position: refs/heads/master@{#413677} [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/audio_player/js/background_scripts.js [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/audio_player/manifest.json [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/file_manager/background/js/background_common_scripts.js [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/file_manager/background/js/background_scripts.js [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/file_manager/manifest.json [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/file_manager_resources.grd [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/gallery/js/background_scripts.js [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/gallery/manifest.json [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/image_loader/background_scripts.js [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/image_loader/manifest.json [add] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/video_player/js/background_scripts.js [modify] https://crrev.com/d19f48706428300449ca4aed64b764bd23c69da7/ui/file_manager/video_player/manifest.json
closing
Comment 1 by bugdroid1@chromium.org
, Aug 23 2016