summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/bootstrap/js/dropdown.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2018-09-17 10:01:48 +0200
committerXavier Morel <xmo@odoo.com>2018-09-17 10:44:58 +0200
commit8e17223c260add842d83b2549d7bdaa4c3cc4d6c (patch)
tree4627013598429b7b23b2985f54b997dd419e7624 /addons/web/static/lib/bootstrap/js/dropdown.js
parente9111f46a6f40695e549648db542e49a647c5a56 (diff)
[FIX] web: remove bootstrap sourceMappingURL
We're not shipping the sourcemap files, and while the assets minifier strips out the mappings they're getting hit in debug=assets which is bot useless and problematic when running odoo-bin without a proxy for static folders: if sourcemaps are enabled (which is apparently the default in all browsers if devtools are opened at this point) the browser tries to fetch the sourcemap, which does through the SharedDataMiddleware which doesn't find them and passes the query on to the regular Application which goes through the entire dispatch & NotFound process. If website is installed, that process ends up rendering website.404, which can be pretty costly until everything is properly cached: # initial request "GET /web/static/lib/bootstrap/js/index.js.map HTTP/1.1" 404 - 319 0.198 0.954 # a few requests later "GET /web/static/lib/bootstrap/js/index.js.map HTTP/1.1" 404 - 27 0.022 0.060 And the way sourcemaps are fetched (might be headers, might be the stampede as browsers will try to fetch a dozen sourcemaps as fast as possible) seems to make this problem much, much worse: instead of 300+ the requests take 800+ queries each, multiple seconds, and requests get worse as time goes on (didn't investigate the exact reason for that) *and* they apparently don't ever get cached (at least they don't after half a dozen reloads of the client).
Diffstat (limited to 'addons/web/static/lib/bootstrap/js/dropdown.js')
-rw-r--r--addons/web/static/lib/bootstrap/js/dropdown.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/web/static/lib/bootstrap/js/dropdown.js b/addons/web/static/lib/bootstrap/js/dropdown.js
index 7149606e403..b89b9e4bf7b 100644
--- a/addons/web/static/lib/bootstrap/js/dropdown.js
+++ b/addons/web/static/lib/bootstrap/js/dropdown.js
@@ -549,4 +549,3 @@
return Dropdown;
})));
-//# sourceMappingURL=dropdown.js.map