News for hackers. Stuff that matters.
Re:Intention.js: Rewrites your HTML based on the user's cont... by mildweed on Sunday April 21, 2013 @11:01PM (#5587515)
Allows you to do two things:

  *  change around attributes on tags, usually src, href or class
  *  move HTML elements around the page
Based on whatever you want (Context.js):

  *  Window width
  *  touch capabilities
  *  pixel ratio
  *  [code your own here]
Re:Intention.js: Rewrites your HTML based on the user's cont... by drivebyacct2 on Monday April 22, 2013 @05:46AM (#5588580)
Is this more appropriate than doing the same thing in CSS/@media?
Re:Intention.js: Rewrites your HTML based on the user's cont... by joe8756438 on Monday April 22, 2013 @06:56PM (#5592237)
What's "appropriate" depends entirely on what you are doing. Intention.js gives you really fine tuned control over how an element responds to different contexts, be it a width threshold, interaction mode, display resolution, could even use scroll depth or number of user's visits to the site.
Re:Intention.js: Rewrites your HTML based on the user's cont... by everyplace on Monday April 22, 2013 @06:54PM (#5592231)
It goes way beyond what css and media queries can do. Imagine writing a media query for a slow-connection, large, high-resolution device in portrait mode, for a repeat, paid visitor, that moved the physical location of DOM elements as a result of the query.