74 Commits

Author SHA1 Message Date
Jaifroid
4d9cf4695d Fix broken display of MathML when there are no images in the document
Former-commit-id: 8e5397d0aa6655e24a5c1a049ab7f80e47284985 [formerly 1674afb4ad3e84dc391345f1a94d880e25974bcd]
Former-commit-id: 2c487839063561e0f6f6bc6db5032bf4e1b00746
2019-12-29 15:30:18 +00:00
Jaifroid
23beda71e7 Improvement to image load timings
Former-commit-id: 696cb6c585de64c55f6be609a5d82a238305c03f [formerly c85e36c0a1e3dbe88b71a40379905387801ee66b]
Former-commit-id: 3a900d28c0f20b780c058608a995581e2c0eddda
2019-11-03 17:05:58 +00:00
Jaifroid
2f496b5b0a Fix image extraction in SW mode
Former-commit-id: 693de5df87ec03a06c26a9dde983d7c1f3291dc9 [formerly e975c240d3d057eaa5d2f636b3d637dc8b83a7af]
Former-commit-id: ff4011727e746e476b678b10e8227c8fc332f13f
2019-08-15 18:30:31 +01:00
Jaifroid
25d4bd7a10 Streamline extraction code
Former-commit-id: 8948d09c66ecff9ae1d1e6dfd8670248d0739e7b [formerly 77abfd83d9efc7b1ebd14225a733600ea2180e9e]
Former-commit-id: c4c2c2b412411b27c993068fe943375e678a2802
2019-08-15 16:47:21 +01:00
Jaifroid
a333560ad4 Style tweak and less logging
Former-commit-id: cbaa4006ead8882f38c77c213500ba4fb02c93ab [formerly a81e9e92bacc64a27ce991f3850b803644c07065]
Former-commit-id: 1a7738de3de435efc5cce4f190e0d363149af4b1
2019-08-15 16:46:31 +01:00
Jaifroid
5b339e3c3f Towards stylesheet reading
Former-commit-id: eb662edd054537b63da1bf09ebbd5dd23d98fc86 [formerly 3db3a7b888991a7c5f509f94708007969e5ecf21]
Former-commit-id: 5e17febc5d869a8a88c28408b7a0bac8d24fae55
2019-08-05 10:18:04 +01:00
Jaifroid
90f7c84c13 Add opacity transition just-in-time so we don't get a double transition on slow devices
Former-commit-id: d82d7889c5e22355ae5f64d89e480fae9e5ab942 [formerly 11bb7db8fb883769dd3bc4adeadc25cf64bfba13]
Former-commit-id: 0284c7c2433fdd7d7154982cae4aebefcc9460e5
2019-07-02 10:55:01 +01:00
Jaifroid
6c8737e21b Process all MathTex at once in SW mode
Former-commit-id: 63ee64e2a406a04d2c863f31becb42821ed41f0b [formerly f084624dba6a21213be1c2970d704b8e05853444]
Former-commit-id: 62cdb534ba4d95aa81508da92ac2104452c37a94
2019-07-01 13:35:15 +01:00
Jaifroid
cdf798c41b Enable SW mode
Former-commit-id: 4299774f0f2a88983fb35799e53c315f72d2309d [formerly 39a92426de9b44ffe73a018f65f8bfc825db0f00]
Former-commit-id: dae887b44d1512cd2426a6b0eba1f1e89f24cea1
2019-07-01 13:35:14 +01:00
Jaifroid
1eba811345 Make loading conditional
Former-commit-id: eb16e603595642dbedcba57b824398792c88c826 [formerly 43a26b3ed9e866e444c4a4c506c67395a0742257]
Former-commit-id: 86f13e07f024fe49f22d52fac0879411ac6e7852
2019-07-01 13:35:13 +01:00
Jaifroid
61064121da Working version of native katex rendering
Former-commit-id: ec964a862c89af0beaed0b5ab724e8606bb36b5b [formerly bd0d49f13471b853b7e2d0a1b78fff98424afa02]
Former-commit-id: 0e89765df398a97b37c4f79a241e614ab9464524
2019-07-01 13:35:13 +01:00
Jaifroid
6f125d79bb Remove old MathJax
Former-commit-id: 5dd30d109c5495ce888791ff519b8813f146c305 [formerly 441509c218eae64649ad9806a35f05e8be7cd88c]
Former-commit-id: de41fadafc43db0bed9d2b95ec66185c866549f5
2019-07-01 13:35:11 +01:00
Jaifroid
e395c13397 Initial work for Wikimedia
Former-commit-id: 2d165fbd83b5f9c0007dd438e88e9d5c1434f155 [formerly ace7ae29390c1eafab5963d9e393962e7005423e]
Former-commit-id: 38f65ec4c3fc6ac9ff9deacd9258fa3c49d082a3
2019-07-01 13:35:10 +01:00
Jaifroid
6a692b2feb Repair printing
Former-commit-id: a10dde003b89dabc7dbcdd68b22e3916761dcd1f [formerly 78e8efa32942f30af60375c5403f88126d68e886]
Former-commit-id: 400db97f836143368eb6020fd96dbfc3f6eedb7e
2019-06-17 18:17:25 +01:00
Jaifroid
9c3acce344 Reduce memory usage
Former-commit-id: 36c454f49397989edb22ef88dc19ce19244b3e79 [formerly aed20d96eec4e55b1bf1c25aefee3155fc05df8a]
Former-commit-id: fb3408aa8169911d402dc79455e3a47d8f57afa6
2019-06-16 16:45:27 +01:00
Jaifroid
0e0cb97103 Streamline image code (faster)
Former-commit-id: 74b5755d7a5aeb9a5b48efe8323beebebd091377 [formerly 27aebef21f5692dad7419fd69c73299b15bd0539]
Former-commit-id: 967048752f39160c840e7fadb367d31badf354b3
2019-06-14 22:10:13 +01:00
Jaifroid
6bd47a98c3 Make contentInjectionMode global
Former-commit-id: 5626d45e2cfa63e65e8cbb3b4000b2c23a08e788 [formerly d93d3ddd46ffcb8a552d4707847a8a628e0143de]
Former-commit-id: 52637a9879f42ae8e509368cf5693c95429e0803
2019-06-14 18:08:00 +01:00
Jaifroid
a4574836d6 Polish image algos and more cleanup
Former-commit-id: 1c1768a161cbdd8139dd30797bf53a50ab9b58e3 [formerly 40f1c369b5f8f02048766f0f224cff8492e9eed4]
Former-commit-id: eb4e43256f94fcb9366d3858358e9c9658632e0a
2019-06-13 08:14:54 +01:00
Jaifroid
540b5b0e26 Add rate limiter and cleanup
Former-commit-id: bb1cc56094804da4a6ce22c2d5a18c2e7df99f56 [formerly 1682683074eb65563c0ff1c6f281e568aecf1c06]
Former-commit-id: 1bc9bc71ac5a9a3651a2e3294d8899b65674ab31
2019-06-13 07:25:28 +01:00
Jaifroid
d250d7a03b Add CSS fade-in and tweak opacity settings
Former-commit-id: e58084c3728965087d532ee77e11b15d1c9dd5e5 [formerly edbb90fc143dc3f8eae5aa45eb1aa6406589135b]
Former-commit-id: 1c3115cabd44b9ddc38d11bbd9b52770d15b26b5
2019-06-12 07:09:30 +01:00
Jaifroid
f769001c81 Tweak batching algorithms
Former-commit-id: e80fb657968f44c0d5def4a8abf04c4007ccd523 [formerly 4ddfe32492dec9b8393d7c6a559558640f9c705d]
Former-commit-id: a323ac4b5536d10520ca0c826594eb07fe170e90
2019-06-11 12:15:10 +01:00
Jaifroid
98aef58662 Version with prefetch, but sometimes images never get fetched...
Former-commit-id: 677f4c47b7f748594991a8947ba98c1562991713 [formerly 3b3e81b9b639d51bed242cb9b158f5de54f98f57]
Former-commit-id: c18101d85838acea41e956db558205071d98a78f
2019-06-09 14:22:48 +01:00
Jaifroid
76e53bed36 Connect new image loading routine
Former-commit-id: 8e07638c56bfefd13f0350bce349990b080057fb [formerly fb5d76b602f8186668a0f2e6cb97fda0b56d2f0a]
Former-commit-id: 7d323fde2dea84e3014d992cf135bc996c3d21e1
2019-06-08 21:33:31 +01:00
Jaifroid
c3d8dc4643 Port some changes from Kiwix JS
Former-commit-id: c104efb632b0d23bd7376e277f22e169a2814e55 [formerly a5dfd669c5676262a410c7bd5a7351cc4bdc6318]
Former-commit-id: e3fd809660f7229c985727d21d411bc5d4197b76
2019-06-08 15:01:36 +01:00