appcache generation #32

mklabs opened this Issue Apr 21, 2012 · 3 comments


None yet
2 participants

mklabs commented Apr 21, 2012

through confess ->

the built-in qunit task is probably a good example on how to write a grunt task that drives a phantomjs instance.

confess also comes with two super hot task in addition to the appcache one:

  • performance: basic performance analysis of the site -> this could be done at the beginning and at the end of the scripts, could be handy to have a comparison and actual impact of running the script, and see the progression.
  • cssproperties: can list which CSS properties are being used by the page (and I guess that a complementary task to remove any non used css properties would be quite handy.)

there would be three additional tasks (or maybe a single one with 3 subtargets), three basic facades to the underlying phantomjs/confess combo:

  • grunt appcache: -> phantomjs confess.js appcache
  • grunt performance: -> phantomjs confess.js performance
  • grunt cssprops: -> phantomjs confess.js cssproperties (edit: nope)
  • and a cssclean? -> do the diff of what is actually used in the page and remove relevant part of the style sheets. (edit: nope)

@mklabs mklabs referenced this issue Apr 21, 2012


vnext(s) #18


paulirish commented Apr 23, 2012

cssprops only captures what is in use at that early state.. so if i haven't triggered some modal dialog, it'll think i don't need those CSS properties or whatever... so i think we could leave that aspect out. :)

👍 to the rest


mklabs commented Apr 24, 2012

Thanks for the heads up Paul. It's true that a dialog without its CSS wouldn't be that great.. :) No csspros / cssclean task then, we'll focus on the appcache / perf one.


mklabs commented May 6, 2012

Based on h5bp/ant-build-script#59 discussion, maybe the manifest task won't be implemented into the node-build-script, directly.

But I really do want the grunt tasks for confess, so I'll probably work on this in a separate plugin (unless someone else already has a good start on this) and think about a way to integrate with the build script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment