Organize the JS and less files by component.#3325
Conversation
|
Is there really any reason to have a separate style for each component? Wouldn't that be significantly less efficient than a single style.min.css that's slightly larger, but only needs to be downloaded / cached once? |
|
the vast majority of CSS is shared, so if we minify to separate style.min.css, we are essentially multiplying the amount of traffic / requests involved in fetching CSS by the number of pages, which is the opposite of the goal. |
|
Agree with the 2 comments of @minrk . |
|
Also, this can be part of another PR, but could the login form be pure JS. I have to re-dive into notebook-list and cluster-list, but something along the same would be great, to for example have a quick access list in the notebook file-open menu. |
|
|
|
@ellisonbg did you want to do the same separation of restful services and human on the js side that you did on the Python side? |
|
Also, was I wrong that you were going to put the IPython stuff in a single 'ipython' tree, rather than unpacking each subcomponent at the highest level? |
|
I do but we don't really have those cleanly separated in the js code right now. Sent from my iPhone On May 16, 2013, at 7:08 PM, Min RK [email protected] wrote:
|
Okay, that's for another PR, then? |
|
If #3321 has beed merged, shouldn't lots of those commits not even show up ? |
|
Probably just needs a rebase for them to not show up, which should actually proceed cleanly since those commits are in master. |
|
Short from my phone. Are the Line number back in the right place? Le mercredi 22 mai 2013, Brian E. Granger a écrit :
|
|
Ahh, good catch I will do that this morning. |
|
I think I already commented on te faulty commit. IIRC notebook.less Le mercredi 22 mai 2013, Brian E. Granger a écrit :
|
|
OK I have fixed line numbers. Only one other change I might make: create a services directory in static. |
|
Here, for the record: this breaks @Carreau's little slideshow mode button, but that's non-official so I wouldn't worry about it. I figure Matthias can update it once the merge goes in. Otherwise I can't see any problems after running a bunch of stuff. Given we have no testing of JS, our only recourse is to put this in front of trained monkeys (aka our users and devs), and dog-food it as fast as possible. That will at least give us a fighting chance of catching any serious problems before 1.0. My vote is to merge it now-ish. |
|
Let me fix the custom.JS stuff first. Sent from my iPhone On May 23, 2013, at 4:52 PM, Fernando Perez [email protected] wrote:
|
|
OK I have fixed the custom js/css stuff and have also styled the code/pre elements in rendered_html back to their pre bootstrap versions. As far as I know, this PR is ready to be merged. We can continue to test and fix the css styles in master - the main thing is that the re-org work doesn't seem to have broken anything. |
There was a problem hiding this comment.
If you move it back, thoses sentences shoudl be fixed here and there.
|
FYI, I need to look at requie.js, but I intend to write a small ext where you say: |
|
Comments as I use it, I'll modify as long as I discover things.
|
This should probably be inside the |
just centers form, rather than allowing it to wrap weirdly
set it to transparent, thus inheriting from the parent div.
CSS tweaks
|
everything I am aware of has been addressed now. |
|
Merging now... |
Organize the JS and less files by component, in the `static` directory of the notebook. This PR does the client side re-org that parallels the server side work in #3321. There are now subdirectories in `static/` for each part of the client; roughly speaking there is one subdir for each page, web service or component.
Organize the JS and less files by component, in the `static` directory of the notebook. This PR does the client side re-org that parallels the server side work in ipython#3321. There are now subdirectories in `static/` for each part of the client; roughly speaking there is one subdir for each page, web service or component.
This PR does the client side re-org that parallels the server side work in #3321. I have created subdirectories in static for each part of the client. Roughly speaking there is one subdir for each page, web service or component.
Todo:
custom.jsandcustom.cssshould work. The top level js and css directories they were in are now gone.fabfile.pyto build all of the differentstyle.min.cssfor each page.