New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow!! Yeeeeesss!! 🚀 🚀 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.config
to be migrated to the main bundle Move oc_config to the bundle #15293OC.generateUrl
to be migrated to the main bundle Move the OC routing helper functions to the bundle #15291OC.getRootPath
to be migrated to the main bundle Move oc_webroot/OC.webroot to the bundle #15295