Remove the dev/deploy concept of static resource packing

Bug #409055 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
Balazs Ree

Bug Description

...or composing, or whatever.

Let's rely on far-future expires to let us use jQuery, jQuery UI, and TinyMCE's "all in one" JS files without any system to try and compose all the JS into one URL.

Reduce as much complexity as possible. If we can get rid of different modes, and different code in the configuration files, then let's do so.

Later, if we find that we need to bring back some complexity, let's do so.

Tags: ajax
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Balazs, if this is something you think could be done by another person, or if you're busy this week, please let me know.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Ok, guess I got my answer on https://bugs.launchpad.net/karl3/+bug/409055/comments/1

I'll see if Mike and Derek can pick up this and the other ticket.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Move to next week.

Changed in karl3:
assignee: Balazs Ree (ree) → Mike N (mike-n)
milestone: m26 → m27
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

A brief "please please" on this.

We are still struggling with IE6 caching. It would be swell if the jQuery UI .css files (ui.base.css and friends) were combined into one. It would eliminate an extra 8 requests, I believe.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

After talking with Balazs and Mike, here's the plan:

- We'll keep a mode that allows you, personally, to go into jsdev mode

- All other modes (dev mode, deploy) will use the same approach

- "Library" code from external projects will be treated differently than KARL code

 - Library code changes very, very rarely

 - Library code has lots of files, many of large size

 - Thus, library code is a good target for one-time "optimization"

 - KARL code changes frequently

 - We need to avoid asking Balazs to re-run something each time we change KARL code

- Library code will be:

 - Joined together into a small number of files

 - No compression (we'll let Apache do gzip)

 - No packing or minifying (the gain isn't worth the lack of production debugging)

- KARL code will be:

 - Served up individually

Changed in karl3:
assignee: Mike N (mike-n) → Balazs Ree (ree)
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Let me add another point to this...

Balazs, feel free to do whatever you want with the "library" part. Minify, pack, whatever. Mike said that some browsers, even if you far-future, still ping the server.

So if you'd like, go right ahead and reduce the library.

Balazs Ree (ree)
Changed in karl3:
status: New → In Progress
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Balazs, I believe you are finished with this one. Let's mark it closed if there is no next action (beyond the other reported issue of the flashing JS error.)

Balazs Ree (ree)
Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

We still have more than I would like. For example, we seem to fetch 7 resources related to grid and autobox. However, marking this as complete.

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.