Uh oh!
There was an error while loading. Please reload this page.
Plain javascript api to asynchronously load javascript or css files - #13407
Conversation
Uh oh!
There was an error while loading. Please reload this page.
rullzer
commented
Jan 10, 2019
go go go 🚀 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
3298dba to
25e658cCompare@ChristophWurst@skjnldsv I have moved the loader to the webpack build in core/ and made it extend the existing window.OCP object. Should we have this as a separate entrypoint and chunk or keep it in the one bundle for now? Besides that, it is ready for review. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ChristophWurst
commented
Jan 15, 2019
I think that is fine for now. We should be able to refactor that and move code around if necessary :) |
0dbe21f to
b40dd20Comparerullzer
commented
Jan 15, 2019
I agree. Basically the OCP stuff should always be loaded if possible anyway. So makes sense to have this in the dist pack. |
Uh oh!
There was an error while loading. Please reload this page.
b40dd20 to
6cbd09fComparerullzer
commented
Jan 16, 2019
So this can go in? |
juliusknorr
commented
Jan 16, 2019
Yes, please review. |
rullzer
left a comment
There was a problem hiding this comment.
Looks good to me and will make lazy loading much better :D
ChristophWurst
commented
Jan 17, 2019
This will give a nice conflict with #13635 🤐 |
| if (msie > 0 || trident > 0) { | ||
| cssVars(); | ||
| cssVars({ | ||
| watch: true |
There was a problem hiding this comment.
poor browser will die of exhaustion ⚰️
There was a problem hiding this comment.
pff so be it ;) No need to keep everybody stuck with crappy old stuff just ebcause of IE ;)
MorrisJobke
commented
Jan 17, 2019
Please rebase and rebuild to resolve the conflict. |
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6cbd09f to
64b5c0cCompare
This PR adds a javascript only public API to replace OC.addScript and OC.addStyle (which require jquery) to dynamically load js and css files after the initial loading.
Waiting for #13156 to integrate it into the webpack build.
Uses: