fune/browser
Kris Maglione 22d4bb0074 Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs
Most of the ReaderMode.jsm and Readability.js code is only needed when we
actually need to render a document in reader mode, but also winds up loaded
into any process where we ever check if a page is readerable. This winds up
wasting a huge amount of memory (and probably a huge amount of CPU time)
loading code which is almost never used.

This patch splits ReaderMode.jsm into two modules, one for checking
readability, one for actually entering reader mode. It also separates out the
isProbablyReaderable checks from Readability.js, since the overhead of loading
that script before it's needed is unsupportable.

This means we're probably going to need some effort to keep Readerable.jsm and
Readability.js in sync, but the code in question is pretty trivial, so it
shouldn't be too difficult.

Differential Revision: https://phabricator.services.mozilla.com/D3687

--HG--
rename : toolkit/components/reader/Readability.js => toolkit/components/reader/Readability-readerable.js
rename : toolkit/components/reader/ReaderMode.jsm => toolkit/components/reader/Readerable.js
extra : rebase_source : 66712057591ae20dd66234e3dc78fbba90a6914e
extra : amend_source : f908f62f49ea54b9099ddb87d9f2fc11f12d4dee
2018-08-17 23:10:59 -07:00
..
actors Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
app Bug 1079662 - Always enable PIE. r=froydnj 2018-09-08 07:41:21 +09:00
base Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
branding Bug 1471657 - Update Nightly DMG background to high-res r=Dolske 2018-08-21 20:54:30 +00:00
components Bug 1489315 - Move ExtensionTelemetry into its own JSM module. r=mixedpuppy 2018-09-07 16:27:44 +00:00
config Bug 1473786 - Enable LTO on macOS builds. r=ted 2018-09-06 06:45:32 +09:00
docs
extensions Bug 1488938 - Round two: migrate mochitest-browser tests to use element variations of firstChild, etc;r=Gijs 2018-09-07 15:31:38 +00:00
fonts
installer Bug 1488857 - Correctly detect the current dev edition version for showing stub installer profile reset prompts. r=agashlin 2018-09-05 20:55:04 +00:00
locales Bug 1438857 - Remove the Flash plugin infobar. r=Felipe 2018-09-06 14:50:16 +00:00
modules Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-06 01:27:49 +03:00
themes Bug 1489485 - Don't apply -moz-appearance on macOS on selected synced tab items when themed. r=jaws 2018-09-07 15:47:07 +00:00
tools/mozscreenshots Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1482256 - Support switching to browser.xul to browser.xhtml. r=mossop 2018-08-14 13:13:38 -07:00
defs.mk
LICENSE
Makefile.in
moz.build
moz.configure Bug 1079662 - Always enable PIE. r=froydnj 2018-09-08 07:41:21 +09:00