diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-09-17 10:01:48 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-09-17 10:44:58 +0200 |
| commit | 8e17223c260add842d83b2549d7bdaa4c3cc4d6c (patch) | |
| tree | 4627013598429b7b23b2985f54b997dd419e7624 /addons/web/static/lib | |
| parent | e9111f46a6f40695e549648db542e49a647c5a56 (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')
| -rw-r--r-- | addons/web/static/lib/bootstrap/css/bootstrap.css | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/alert.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/button.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/carousel.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/collapse.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/dropdown.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/index.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/modal.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/popover.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/scrollspy.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/tab.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/tooltip.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/bootstrap/js/util.js | 1 | ||||
| -rw-r--r-- | addons/web/static/lib/popper/popper.js | 1 |
14 files changed, 0 insertions, 14 deletions
diff --git a/addons/web/static/lib/bootstrap/css/bootstrap.css b/addons/web/static/lib/bootstrap/css/bootstrap.css index 943532db554..5fa9c16d42d 100644 --- a/addons/web/static/lib/bootstrap/css/bootstrap.css +++ b/addons/web/static/lib/bootstrap/css/bootstrap.css @@ -9027,4 +9027,3 @@ a.text-dark:hover, a.text-dark:focus { border-color: #dee2e6; } } -/*# sourceMappingURL=bootstrap.css.map */
\ No newline at end of file diff --git a/addons/web/static/lib/bootstrap/js/alert.js b/addons/web/static/lib/bootstrap/js/alert.js index a7d1721ae62..75298e522ab 100644 --- a/addons/web/static/lib/bootstrap/js/alert.js +++ b/addons/web/static/lib/bootstrap/js/alert.js @@ -201,4 +201,3 @@ return Alert; }))); -//# sourceMappingURL=alert.js.map diff --git a/addons/web/static/lib/bootstrap/js/button.js b/addons/web/static/lib/bootstrap/js/button.js index 73b97a7568a..027f7ee7be3 100644 --- a/addons/web/static/lib/bootstrap/js/button.js +++ b/addons/web/static/lib/bootstrap/js/button.js @@ -189,4 +189,3 @@ return Button; }))); -//# sourceMappingURL=button.js.map diff --git a/addons/web/static/lib/bootstrap/js/carousel.js b/addons/web/static/lib/bootstrap/js/carousel.js index 877d0b95948..a85a1154dda 100644 --- a/addons/web/static/lib/bootstrap/js/carousel.js +++ b/addons/web/static/lib/bootstrap/js/carousel.js @@ -564,4 +564,3 @@ return Carousel; }))); -//# sourceMappingURL=carousel.js.map diff --git a/addons/web/static/lib/bootstrap/js/collapse.js b/addons/web/static/lib/bootstrap/js/collapse.js index 94819cc388b..7a7023ffbe3 100644 --- a/addons/web/static/lib/bootstrap/js/collapse.js +++ b/addons/web/static/lib/bootstrap/js/collapse.js @@ -428,4 +428,3 @@ return Collapse; }))); -//# sourceMappingURL=collapse.js.map 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 diff --git a/addons/web/static/lib/bootstrap/js/index.js b/addons/web/static/lib/bootstrap/js/index.js index e36eca1590b..4ac5d6fc2f9 100644 --- a/addons/web/static/lib/bootstrap/js/index.js +++ b/addons/web/static/lib/bootstrap/js/index.js @@ -20,4 +20,3 @@ throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0'); } })($); -//# sourceMappingURL=index.js.map
\ No newline at end of file diff --git a/addons/web/static/lib/bootstrap/js/modal.js b/addons/web/static/lib/bootstrap/js/modal.js index ff5e82d5e23..3fc35501b41 100644 --- a/addons/web/static/lib/bootstrap/js/modal.js +++ b/addons/web/static/lib/bootstrap/js/modal.js @@ -631,4 +631,3 @@ return Modal; }))); -//# sourceMappingURL=modal.js.map diff --git a/addons/web/static/lib/bootstrap/js/popover.js b/addons/web/static/lib/bootstrap/js/popover.js index 331b8140d1a..b58e908f14a 100644 --- a/addons/web/static/lib/bootstrap/js/popover.js +++ b/addons/web/static/lib/bootstrap/js/popover.js @@ -263,4 +263,3 @@ return Popover; }))); -//# sourceMappingURL=popover.js.map diff --git a/addons/web/static/lib/bootstrap/js/scrollspy.js b/addons/web/static/lib/bootstrap/js/scrollspy.js index 177369bb26f..1de3a73cf96 100644 --- a/addons/web/static/lib/bootstrap/js/scrollspy.js +++ b/addons/web/static/lib/bootstrap/js/scrollspy.js @@ -376,4 +376,3 @@ return ScrollSpy; }))); -//# sourceMappingURL=scrollspy.js.map diff --git a/addons/web/static/lib/bootstrap/js/tab.js b/addons/web/static/lib/bootstrap/js/tab.js index 0c7efd1609c..3d5ca8cc6df 100644 --- a/addons/web/static/lib/bootstrap/js/tab.js +++ b/addons/web/static/lib/bootstrap/js/tab.js @@ -275,4 +275,3 @@ return Tab; }))); -//# sourceMappingURL=tab.js.map diff --git a/addons/web/static/lib/bootstrap/js/tooltip.js b/addons/web/static/lib/bootstrap/js/tooltip.js index b39eba45624..d5ddba1a6a5 100644 --- a/addons/web/static/lib/bootstrap/js/tooltip.js +++ b/addons/web/static/lib/bootstrap/js/tooltip.js @@ -731,4 +731,3 @@ return Tooltip; }))); -//# sourceMappingURL=tooltip.js.map diff --git a/addons/web/static/lib/bootstrap/js/util.js b/addons/web/static/lib/bootstrap/js/util.js index 2468212e2fb..af7281df94a 100644 --- a/addons/web/static/lib/bootstrap/js/util.js +++ b/addons/web/static/lib/bootstrap/js/util.js @@ -141,4 +141,3 @@ return Util; }))); -//# sourceMappingURL=util.js.map diff --git a/addons/web/static/lib/popper/popper.js b/addons/web/static/lib/popper/popper.js index 512221bd75e..b8c45b8a00e 100644 --- a/addons/web/static/lib/popper/popper.js +++ b/addons/web/static/lib/popper/popper.js @@ -2525,4 +2525,3 @@ Popper.Defaults = Defaults; return Popper; }))); -//# sourceMappingURL=popper.js.map |
