fune/toolkit/components/reader
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
..
content Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy 2018-06-28 16:06:09 -07:00
test Bug 1486315 - Replace promiseWaitForCondition with TestUtils.waitForCondition in reader mode tests. r=johannh 2018-09-05 12:19:54 -07:00
.eslintrc.js
AboutReader.jsm Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop 2018-08-31 05:59:17 +00:00
jar.mn
JSDOMParser.js Bug 1487044 - sync reader mode to github tip ( 3be1aaa01c078c25b67ed8dfd1c9aa8f9963490b ), r=johannh,gijs 2018-08-29 12:51:09 +01:00
moz.build Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
Readability-readerable.js Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
Readability.js Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
Readerable.js Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
Readerable.jsm Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
ReaderMode.jsm Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs 2018-08-17 23:10:59 -07:00
ReaderWorker.js Bug 1467742 - update reader mode code and tests for readability updates, r=jaws 2018-06-08 12:54:35 +01:00
ReaderWorker.jsm