Jaifroid
022e04a450
Major upgrade to image-loading mechanism
...
The mechanism now detects which images are visible to the user, and prioritizes them, triaging the others
Former-commit-id: e576560f96812e3aa895910d1f8ddc3c71e6c84d [formerly f2a5a2c932addfac93ceec103bcca4d2c5365a3a]
Former-commit-id: b2cc19d260aa95807e2a92cd621cf203b15e7c4f
2017-07-30 18:05:38 +01:00
Jaifroid
3bd9668dcc
Changed image placeholder colour to less obtrusive lightblue
...
Former-commit-id: aefca71e6cedcefc5e5e891bac9cc0645ea6d25d [formerly b426899d3b9c977e30fb133e3979130f0031d5e2]
Former-commit-id: 26c1482775f6f1936237ee3bb26bc22ef6a9b248
2017-07-24 22:14:10 +01:00
Jaifroid
4dd9e884a1
Supports Firefox for image hiding and showing
...
Former-commit-id: ffcdb7cfe7edb5dd25511a56015af1123c306b3d [formerly e53230fbc58614559785ae38684721141fb289ce]
Former-commit-id: b22b1e9ca13197e0bbac1ad5cfb48aecc340cdb3
2017-07-24 18:43:58 +01:00
Jaifroid
a6b4c2d67d
Resets background-color
...
Former-commit-id: b792c15feb54227cfed0537158b1a37d266279e8 [formerly f8ef401e0c4234966ea989e29fdc86881be08ac2]
Former-commit-id: cd2c9ce49680c9a90692dac1dc82ffa882963b2c
2017-07-24 17:30:32 +01:00
Jaifroid
18087526fa
Allows user to show images selectively
...
Former-commit-id: 0795cbed19a602a7a4863addf70dcad51bd19851 [formerly b105613908c1edaddedad19e447f4ab1608c2ea9]
Former-commit-id: 9f30098a303fffee1c17a598713851da1c24e9cc
2017-07-24 16:56:48 +01:00
Jaifroid
286f278478
Supports optional display of images
...
Former-commit-id: 27eaf0101bc019fda5c1d820929151206af6c869 [formerly 08a2619294ae0334d8fcbe1119a09376af606019]
Former-commit-id: d70bfab87e6d70862b4923e015b3eaa0fcae2e8e
2017-07-24 08:37:47 +01:00
Jaifroid
9546efe67c
Support more Wikivoyage CSS
...
Former-commit-id: c058a0e07b014ce4d6cf8af9fed3edd44b86bc42 [formerly 4d02eee12b471ea4d0664f242466c6bc99d16f4a]
Former-commit-id: 8d3660399e6a803b738e777f84e1f1cf6107870c
2017-07-24 08:37:08 +01:00
Jaifroid
f737810e7c
Better control of scrolling
...
Former-commit-id: bee8f99270a2433ecc4a7c4069c96d5be37fedd3 [formerly 07e380b2a17edffabd0314e3a016f6e62e6d8b31]
Former-commit-id: 959c1ef146c3368ace2d199c012386e3a68d9b93
2017-07-23 19:19:19 +01:00
Jaifroid
377cc87c7a
Improved code (refactored)
...
Delay is now reduced
Former-commit-id: 27f0714ceed9de84b9deb11bb2094d293295c31e [formerly 185b1e19a2a67c4b5d4a1eec8b65b9c304c8fa13]
Former-commit-id: de7926106adbd7f8ca068f45efd9f4e7172472ae
2017-07-23 18:06:31 +01:00
Jaifroid
dae524cf16
Attempts to wait for scroll
...
Unfortunately this takes too long to fire up again
Former-commit-id: 92b3c0e6b31aae6913cb9e9b31a04d2e94b8f237 [formerly 943b8eeddc271dbedf5c46ed7d41f19a978fee56]
Former-commit-id: 3b3815ffce09f1813095b702ae6404835bf9b42c
2017-07-23 12:07:04 +01:00
Jaifroid
5af1f1ad9d
Initial window of 10 images added
...
Former-commit-id: 636c5c807522e489464c905502366dd6dd1786c5 [formerly a9fa1a644ae37f61dc8813fc62986ac346b37f6b]
Former-commit-id: be8e1f79f005a25724d2d6abeffe16ca01cf9607
2017-07-22 12:24:34 +01:00
Jaifroid
0f4858f82e
Dramatic increase in speed of image extraction
...
This is done by requesting images in slices
Former-commit-id: e6062f8c516c0211b6c5a3006688399ad1a872b6 [formerly e655417903773d5668359914b4726add5f8fca4e]
Former-commit-id: b72c3814be52db7e1b9037bd7cf275ff48ae2b18
2017-07-21 17:41:19 +01:00
Jaifroid
a7d9239d1a
Adds timers and updates timing tests
...
Former-commit-id: 97b1841cca2cd46a843e157988d92b179734218d [formerly 3680603734b09be686957e2d25ebc2653de68c9d]
Former-commit-id: c2086c68ba32b606516c650191788c70752e64bb
2017-07-20 23:04:19 +01:00
Jaifroid
5a29fef00f
Added UI enhancements from the backport
...
Former-commit-id: 6d88db52be83173ad4f881bf5cac8260105f0341 [formerly 5f32abe32d11d831730965b83d80dfc6c9de44c1]
Former-commit-id: 324fdbf2354a313f4f7816abf1ec233cdf67649f
2017-07-19 11:06:02 +01:00
Jaifroid
12a21b8e83
Disable return link on change to service worker
...
Former-commit-id: e24d6c725947a650f92b44a42f9355d0f1e475e8 [formerly b1d3895b679a12178fbcf7d65df19bfe0c0afc6c]
Former-commit-id: cbed3ae8120793281d8084f90528aedcab0faed4
2017-07-19 07:47:23 +01:00
Jaifroid
e38654b2b7
UI enhancements
...
Support for progress messages and for returning from Config to the article without reloading
Former-commit-id: e8b716ea6a00dd8d49226a12eef39f03815213e6 [formerly c6970a190d5f707815533800a06973f3ed024163]
Former-commit-id: 5bdbb72ef7ea593793e0b451a69687e6182c0412
2017-07-19 00:12:15 +01:00
Jaifroid
f75596aedd
Corrected over-zealous regex which was stalling
...
Former-commit-id: c53be123eb834131ecd84dad3ea626dc055a2273 [formerly f5a2d97ea47b058dbae52058d52837a235107b25]
Former-commit-id: ef135f68c2c469b02e1d334e7319c95c9a7edeb4
2017-07-18 02:18:55 +01:00
Jaifroid
0ce73dc032
Fixed refactoring bug
...
Former-commit-id: 185cb90d1282c7d5d7b6ab99231ad17cb8329043 [formerly 8f8562d2cbab4184f38cc1b27e2ca2ea0b04e848]
Former-commit-id: e26258e4a7bfb5a7acba30778394613b3ab109d2
2017-07-18 01:42:48 +01:00
Jaifroid
88edcd7ccf
Sync with kiwix-js
...
Former-commit-id: ee67f2fe047fa2450212c970e5991738eebe5773 [formerly d84ad68682a6de99bae10a293a603fd4e1076f2b]
Former-commit-id: a8c807904da68a84d1c5d01c69c52278681cd851
2017-07-17 21:21:58 +01:00
Jaifroid
5b3bce9f7d
Missing CSS detection
...
Former-commit-id: 6966f027b6435a7b71fe998f66013cdf759dacf3 [formerly 08aea11b749d9dce89e3b427b77f921c6fa9e37b]
Former-commit-id: 5c6b7e39e97781b7e551b0bf0a72fe571b5a7186
2017-07-17 19:02:33 +01:00
Jaifroid
8fa6691348
Prevent unnecessary transformations
...
Former-commit-id: b17c9aeb961549868067a60c10bf4f0c759fb797 [formerly 27865b46191c1633970df0820651d69fde08ea24]
Former-commit-id: 113a7e5c0bf9816830e76944abc00cb48e3e110f
2017-07-16 16:00:35 +01:00
Jaifroid
4225a897ce
RequireJS unminified
...
Former-commit-id: 96688db2212878ea5f821691a127bbf116a2177f [formerly dbd2e89ea730b951be2955714d84e978687c2f80]
Former-commit-id: b63df5210d59c2f70607806931e137048c5706a2
2017-07-15 23:13:34 +01:00
Jaifroid
9828b9ba0a
Major reorganization of styles transformations
...
Former-commit-id: 9340c05cdd3b610ecc9f771978d83c7febdd512d [formerly 0f6d1f348aa981e5ec42e806772c69ba8565f06d]
Former-commit-id: d04f0842dd9b6f01776f184ec7cfac76c3f00a98
2017-07-15 23:12:42 +01:00
Jaifroid
9f4f84c201
Synchronizing bootstrap
...
Former-commit-id: 74a59cb8d6ef0443ecd6ada4a19c1d9c0c03d4ad [formerly 10274589555b769f384cb76b851e69d8c2dc682c]
Former-commit-id: 87d4d04bcb1bdb752eb8be2462169fd67b161bd6
2017-07-15 23:11:58 +01:00
Jaifroid
8abb11d6f8
Major improvements in stylesheet transformations
...
Former-commit-id: a4a9b6f44d5bf611fb51387d283351f327b3c357 [formerly dc1584995a0e6df7087b61fcb6c658949c145b0c]
Former-commit-id: a0f4808622254de2c34243d393e6e93fe5cd7540
2017-07-15 15:38:58 +01:00
Jaifroid
8b309d3b65
Revert accidental transformCSS changes
...
Former-commit-id: bc450658b6513f67f4545efb6e575ff231476407 [formerly 1054f2973057581641fa961076adc06d5b37d922]
Former-commit-id: e1902c0e617ebb94f6ea7b02bc829be648501316
2017-07-14 08:48:26 +01:00
Jaifroid
0ca60593af
Remove old jQuery
...
Former-commit-id: 894541ed63c3d1b341f6239c5376f7c6c36cc807 [formerly c2c87d84fd0a269f5216609ed888bfefeafaffbd]
Former-commit-id: d1b119b6be0ce17a5ec39e3ef6f6f1a5d0745775
2017-07-14 08:47:46 +01:00
Jaifroid
74e38be7dd
Remove old jQuery declaration
...
Former-commit-id: a836e37743034d00d63e05b8debf1fc6996f28fa [formerly e672f92b83abfeb13e8dcce22ba1613c9c5058c7]
Former-commit-id: 0d7622a9e90b1598ddaf53277623834705756df1
2017-07-14 08:41:25 +01:00
Jaifroid
c202cdff02
Better fidelity of mobile style
...
Former-commit-id: 460ac1f668ee4b5240a66d19156581299b71e84b [formerly 1002cb7f2beb965e140c8735417f4dd3b9f2e8b3]
Former-commit-id: 681b0c5e541ffb2fcd912b8ccffc320299553cfc
2017-07-13 18:32:14 +01:00
Jaifroid
77215a8c9b
Added documentation of transformations
...
Former-commit-id: 1875b04960fc8b6b7eaf9dc68ec86c52191e25ab [formerly 294b25360bbf9034cc25ecc0ee66e45df90ea44a]
Former-commit-id: 019e7c794233b93fd572ee7f0d3df66eff6006f6
2017-07-13 14:42:54 +01:00
Jaifroid
39a58cee78
Reduce top padding for mobile styl
...
Former-commit-id: e66027131f4d6c4f4c93756a1be149d3ee904dc8 [formerly f763e201bd7be9564bce3fa4e15f9cc43c3a049d]
Former-commit-id: 19d7e01f9aca976d0f065feafc1165defb99f74c
2017-07-13 14:11:02 +01:00
Jaifroid
9b776fabb7
Improvements to stylesheet injection
...
Former-commit-id: 86f79bd93f6a2dd07a24f17409e3f57c1554689f [formerly f2b9d4d81ef1ca875595a651c74bb20d062bfe79]
Former-commit-id: 92e3b3e933fca77ba3985679dca3e3efbef40233
2017-07-13 13:41:51 +01:00
Jaifroid
a902bb76c1
Added warning for devs
...
Former-commit-id: 8f7db8c23eaead76df267c4409e9cb87ca465561 [formerly f54e36b5fc49817bf07d1d4f8613f77f1479ecfa]
Former-commit-id: fb2c763cc8b0dd3d23fbbb9e9a84b94555ee9d41
2017-07-12 22:26:17 +01:00
Jaifroid
3529ccdf4a
Allow user to strip the mobile stylesheets
...
Former-commit-id: 304fb75c0d055ac1b43e614e67598d5ca3633aad [formerly 46c1a05f68c964b9a71f017fcdf24192dd476757]
Former-commit-id: 6c5bc8226d12ca52a55f64741bee166785979187
2017-07-12 17:10:15 +01:00
Jaifroid
7a9047633d
Correct accidental load of desktop style in mobile mode
...
Former-commit-id: 07b3ce5d279abb77515dd56df1aab5ef4ee631b2 [formerly 80500fafe17a8de4e9fc41af3e06cb82451f7ff1]
Former-commit-id: 33fe2ce106544025f5788bc00281cf6675187305
2017-07-12 10:22:37 +01:00
Jaifroid
1b06158623
Added user selectable display style
...
Former-commit-id: bfe71baf2b7894a0b8a8009edfc21212b074764e [formerly d0e90a01a191d403b4fd340424f8eb7e6460d530]
Former-commit-id: 4d153cb7308260705001bb1c5b15931361da7155
2017-07-12 08:44:39 +01:00
Jaifroid
67c8b60069
Better mobile rendering
...
Former-commit-id: e45c4013eb3c4c8ee42d245085ba6851a7ce52fa [formerly d977783c91aac2163d4b06a4220927e392704c8e]
Former-commit-id: c8210cb179775fafca10f5b93dbaad89c2a9b260
2017-07-11 23:02:15 +01:00
Jaifroid
1e77f6e92e
Switch back to zimfile
...
Former-commit-id: c92ff24f3c262ebd774eb4890261c97c225d3397 [formerly 372765b248fb8763a4d6365a5c1b465e7e57f49a]
Former-commit-id: 3791c3b814f2b50e3222cb953554564b643a7a06
2017-07-10 21:57:38 +01:00
Jaifroid
5295af46a1
Implements mobile style
...
Mobile is set as default in init.js
Former-commit-id: 8aefa91d818b469c93266f081708005ec0932ef6 [formerly efab5b7fb9747d3c2efd5466c8dce1befec7f462]
Former-commit-id: 36bf8b4b8dd6234598e14455170f49b45c1cfd39
2017-07-10 18:32:26 +01:00
Jaifroid
547a4d0cad
Add params for source of CSS
...
Adds params in init.js for selecting source of CSS ("zimfile", "local" or "mobile"). User selection still to be implemented. Default is "zimfile".
Former-commit-id: 311bac831c130592414cbb0df5ddba7eac61f5aa [formerly 903a65084c766f414c13115fd890017ca579814d]
Former-commit-id: 96c6d751437772809e39a4a41785bcc71cd02cbb
2017-07-10 17:08:56 +01:00
Jaifroid
e51c240346
Prevent JS errors
...
Former-commit-id: 2d579e9b27f0fd598b13551f4780468133e0aa68 [formerly 303961acdc7b097ab37dbdad0113a087478aa2a5]
Former-commit-id: f01ba231ffeb6c19c2b449f1b4654271143fd214
2017-07-09 23:23:36 +01:00
Jaifroid
1832c49346
Cache common css in filesystem
...
Adds several common Wikipedia stylesheets into the filesystem and calls them instead of searching in ZIM file
Former-commit-id: 4bc437a57c10d8cc776bff317f2f69985228c086 [formerly 6319655c85dcc349d4b2755d69b13c00fbd7a9d2]
Former-commit-id: de9f3c234b9e5c8decedac9cc13f74282ce08132
2017-07-09 21:22:57 +01:00
Jaifroid
46b00ad6a5
Preload stylesheets
...
Implements kiwix-js #149 (Load images after CSS), except does this to raw HTML. Not tested with serviceworker.
Former-commit-id: fd9559cfb555f2ace17c504092ff61efebafa055 [formerly 27a3a40c5e42650fb6c06d4bb981fe1c0f81a18f]
Former-commit-id: 4f3ac1d9c4ea4c5acb53130dc31972fdb53cc3e3
2017-07-09 11:03:37 +01:00
Jaifroid
db83e2adcb
Keep in sync with kiwix-js
...
Former-commit-id: c84ef5bd085ff7d6cd3bfad167ccc0daebbf1b33 [formerly 3584b75a1761b10a6fddb240b50c1a293ee9c5dd]
Former-commit-id: b5ca78f10e29ddc36603346f057fa2eba18db36c
2017-07-09 10:59:28 +01:00
Jaifroid
c575caaa00
Fast-replace img src
...
Former-commit-id: a06c1c1b520865ecea28573e87a0cc2024c0e434 [formerly 2fa6cf6fdac12a7fde8bf313e5766acc6e41be1b]
Former-commit-id: 38f4bf42ff16f2e0377c6762ee14d7f5dc48f6ad
2017-07-05 17:34:20 +01:00
Jaifroid
b85b749dc7
Simplify image showing and hiding
...
Former-commit-id: 21045ffb2cdd43ee1af5e53d44582a57c57bc0dc [formerly c78b1cf4dfc2a38bc3c7f645541ecf7716d0c29c]
Former-commit-id: 8c6719ba3f8aa8e90f6e5d9b4881d0b160a69ffa
2017-06-25 22:30:32 +01:00
Jaifroid
01f8713675
Update libraries and build
...
Former-commit-id: 46e81c0b1580478c8ac91a797b4d3412e0934577 [formerly 8d78712f20894e56981d0f7b29946594b848192b]
Former-commit-id: 6e8dc301effd33cdf73eb087e3d87dfa74835716
2017-06-25 22:29:44 +01:00
Jaifroid
c9bf00b070
Prevent display of unnecessary 404s while loading images
...
Former-commit-id: 6a28f20ac8d0178c0702b5fce502040926a405d8 [formerly 49c72f554f7cc7cfc559884c6beb5a47e2bf94da]
Former-commit-id: 690a04140e95a7b460d4af0a4d927238d09bfd36
2017-06-25 18:53:33 +01:00
Jaifroid
763c19fcec
Update require to 2.3.3 (minified)
...
Former-commit-id: c112c8748a938820c69b368a21f87bb535329769 [formerly c6cadf0d15f48a8d104165b999bd85a8989b72a7]
Former-commit-id: 414ea83fdf6cf44d3cb946f53c0bc9d69af378c4
2017-06-25 15:07:12 +01:00
Jaifroid
0fd6f8d4a2
Update libraries and themes, including minified versions
...
Former-commit-id: 84fdce2d57e75565337555c7b26208b7ab1f4b38 [formerly e9236f90c51d7f343b9c05f108d058290827ca67]
Former-commit-id: f07271f3a481a663ae5bfa50481995a4dc1cafb3
2017-06-25 11:48:07 +01:00