-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Require kernel change #2350
Require kernel change #2350
Conversation
Remote beta.etherpad.org tests (running over 40Mb internet connection) develop (20 plugins)
require-kernel-change branch (20 plugins)
|
…rpad-lite into require-kernel-change
… require-kernel-change
I'm struggling to replicate this locally, perhaps I need to clean up after update.. Ah I think the bug only fires when minify is on. 1.17 to 2 breaks it. Fixed, they changed the API (\o/) |
…rpad-lite into require-kernel-change
This is ready for testing. @marcelklehr @luto |
Sorry for being late on this :) - Tested this with a plugin and it loaded |
@marcelklehr Afaik it did that before no? |
d7e980c is good ( |
ah okay. |
I'd change the require-kernel part (https://github.com/ether/etherpad-require-kernel/blob/master/kernel.js#L456) into
So, you still save at least one request. |
I forked the require kernel so I could make some changes
Mostly the performance (due to # of http requests) was too poor.
https://github.com/ether/etherpad-require-kernel/blob/master/kernel.js#L456 shows the change I made.
We still need to address the issue of it not loading modules that don't serve their main file as
/index.js
It needs a lot of testing, I didn't test IE.
So why this version:
async
andunorm
-- perma fix required for plugins that provide a components.json that includes a main section.. Example cmponents file:In this instance our require would be
("async/lib/async.js");
Actually there are only two modules that exhibit this behavior, async and unorm.. For now I have put a hard hack in place for them... It will suffice until we decide what we're doing w/ require kernel and yasjml