Re:Show HN: Combining AJAX, pushState & CSS3 transitions
by artpop on Thursday January 19, 2012 @08:34AM
(#3484378)
All good until your clients want it to behave the same in IE. Then you have to do ten times the work (hash changes, jQuery animations to replace CSS transitions, etc.)
Re:Show HN: Combining AJAX, pushState & CSS3 transitions
by paynedigital on Thursday January 19, 2012 @08:51AM
(#3484434)
I'd hope a bit of gentle education surrounding the pros (i.e. very few, just a slightly slicker effect) Vs the cons (i.e all those you outlined) would make most clients see that it's not worth the effort, in this instance at least. But yeah - I take your point :)
Re:Show HN: Combining AJAX, pushState & CSS3 transitions
by RandallBrown on Thursday January 19, 2012 @09:07AM
(#3484488)
If you're using safari and do the two fingered swipe to go back, this doesn't look too great. It's the one thing I don't really like about the cool slide animation you get when you do that.
Re:Show HN: Combining AJAX, pushState & CSS3 transitions
by paynedigital on Thursday January 19, 2012 @07:32AM
(#3484206)
Hey - I have pondered using less / sass / etc but so far haven't yet had much need (though the repetition required by the theming is perhaps a strong case to start considering it). To be honest, the vast majority of the site's CSS is contained in Twitter's bootstrap framework anyway so up until this point it's not something I'd worried much about :)
Re:Show HN: Combining AJAX, pushState & CSS3 transitions
by paynedigital on Thursday January 19, 2012 @08:59AM
(#3484453)
None at all actually, that's just a mahoosive oversight on my part. I've been working on lots of server side caching and server optimisation (e.g. mod_pagespeed) and committed the cardinal sin of ignoring the basics. Thanks for pointing it out - one for the issue tracker.
http://www.nma.gov.au/av/portmacquarie/
Still, the end results are sweet.
For instance, I use a mixin called border-radius, which is replaced by all the vendor-specifics.
Just @include "bootstrap.less" at the top of your less file, add your rules below and compile just your less file using lessc. Easy.