wicketstuff-merged-resources: 2.1 and 3.0 released!

February 5th, 2010 by Stefan Fußenegger  |  Published in Java, Wicket, wicketstuff-merged-resources  |  2 Comments

I’m happy to announce the releases of wicketstuff-merged-resources 2.1 and 3.0.

Changes from 2.0 to 2.1 (Wicket 1.3.x):

(Note: [WMR-12] and [WMR-14] already went into 2.2-SNAPSHOT)

Changes for 3.0 (Wicket 1.4.x):

Downloads:

Responses

  1. Daan says:

    September 9th, 2010 at 15:04 (#)

    Hi Stefan,

    Is it also possible to have a subset of the CSS for a page?

    Suppose I have the following

    Page1.java
    common.css
    Page1.css

    Page2.java
    common.css
    Page2.css

    Now the Page2.css and the Page1.css will be merged in all.css. Is it possible to merge all the css files for one page (or panel), but not having the css come up in other pages?

    So, effectively this will happen:
    Page1.java has one css in the section, merged from common.css and Page1.css
    Page2.java has one css in the section, merged from common.css and Page2.css

    Is that possible?

  2. Stefan Fußenegger says:

    September 9th, 2010 at 17:16 (#)

    No, that’s not possible. Instead, you should consider merging all three into one file or simply keep them separate.

    You could also take a look on your site’s access statistics to check which page is the most important entry page. Assuming it’s Page1, you could merge Page1.css and common.css and keep Page2.css separate. If a user accesses Page2 there’s a good chance that the merged common.css is already in cache.

    Unfortunately, I don’t know of a way to measure cache hit rates for resources (as you can see at http://stackoverflow.com/questions/3300891/how-to-measure-http-cache-hit-rates). Hence tuning is all about such assumptions.

    Hope this helps.

Leave a Response