-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Javascript Bundles #1980
Javascript Bundles #1980
Conversation
db3411f
to
c93f59b
Compare
f5b96f2
to
ff0793c
Compare
@@ -1,7 +1,8 @@ | |||
EXTRA_DIST += \ | |||
tools/html-minifier \ | |||
tools/htmlmin.conf \ | |||
tools/jsmerge \ | |||
tools/jsbundle \ | |||
tools/cssbundle \ |
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.
whitespace
Fixed whitespace, rebased. |
ff0793c
to
36b9ba2
Compare
The check-menu failure is genuine. If anything goes wrong with dropdowns, it usually means that bootstrap is loaded twice. Maybe that is the case? |
When loading the dashboard (which I think avoids loading the "shell" component), I get this:
Thus, both base1/bundle.js and base1/jquery.js are loaded (but I am not sure whether they are loaded into the same iframe). |
I'll take a look at this in a minute. |
Besides just merging them, this gives javascript files the right identifier.
This has require.js first in the minified bundle, and commonly loaded modules after that. This bundle is unlike javascript bundles for other packages: * The debug bundle has require.js rather than just being empty. * We distribute both the individual minified javascript files and the bundle, since these files are API. * requirejs must come first in the bundle
More stuff will go into this bundle. The shell code won't go in here as it would otherwise just run on every page that loads this bundle.
Move code out of the HTML files into the javascript bundle as well. Closes cockpit-project#1980
Fixed CI issue. It was because requirejs wasn't first in the base1 bundle. I broke this during cleanup of the patches. Rebased as well. |
Create javascript bundles that combine multiple AMD modules into a single file for quick loading.