Create a login bundle for login page scripts#13929
Conversation
Or after an update 😉 |
|
🚀 Of course a good second step would be to add something that does preloading of required files for after the login. Once the login page is done loading. But first this yes! |
220d95c to
9adfb7e
Compare
1b07e66 to
73ee44e
Compare
|
Tested and works 🚀 💃 🎊 |
73ee44e to
0f5f125
Compare
MorrisJobke
left a comment
There was a problem hiding this comment.
Works, but for me the main.js with 1,2 MB is still loaded. Is this correct?
|
Also before it was 32 requests with 1,7 MB in total and after it is 29 requests with 2,1 MB. 🤔 |
I actually haven't checked recently. But it could very well be the case as it's just loaded everywhere. |
|
It's loaded for every template server/lib/private/legacy/template.php Line 121 in 65964a5 |
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
0f5f125 to
3cc8c9b
Compare
|
I fixed the conflicts here. |
|
Looks good except the git clone problems. Merging now. |
|
This change breaks password reset |

Once done this will make it obsolete to load 95% or the scripts we currently load on the login page, meaning that users will see faster page loads when the open the login page on a (new) device with empty caches.
OC.configto be migrated to the main bundle Move oc_config to the bundle #15293OC.generateUrlto be migrated to the main bundle Move the OC routing helper functions to the bundle #15291OC.getRootPathto be migrated to the main bundle Move oc_webroot/OC.webroot to the bundle #15295