4 ms·
Javascript Effects
- tptacek 17y agoWhere by "unobtrusive" we appear to mean "Kai's Power Tools".
- _pius 17y agoDon't knock Kai's Power Tools man ... at the time it was one of the coolest things I'd ever seen.
- rdrimmie 17y agoImage curls and embedded audio players are essential? These effects are modern-day animated under construction gifs.
- jwecker 17y agoNon-essential and somewhat intrusive. Fun toy scripts, though.
- thaumaturgy 17y agoThese are idiotic, and should all be done on the back-end -- either by your favorite image program before you upload your image, or by some server-side code -- and they add nothing of value to the website. By contrast, check out the JS effects integrated into a site I did for a client: http://davidmckayphotography.com/ http://davidmckayphotography.com/ (I didn't do the site design or layout, just the photo gallery/JS bits).
- timmaah 17y agoNice.. but it is not "Unobtrusive JavaScript" http://en.wikipedia.org/wiki/Unobtrusive_JavaScript http://en.wikipedia.org/wiki/Unobtrusive_JavaScript
- thaumaturgy 17y agoWhoops, you're right, it's not. I'm currently working on a new version which actually would be.
- NathanKP 17y agoI agree. I see no need to waste bandwidth and page size with an external library to add an image curl. If I wanted that I would add it using my favorite image editing program. The JavaScript image processing libraries he mention also make the image grainy. I'm really not impressed. If there is one possibly "essential" javascript effect it would be the spinning ajax indicator or a progress indicator for uploads and other time intensive operations. None of the "effects" mentioned by the author are anywhere near "essential."
- nod 17y agoIsn't "essential unobtrusive javascript" an oxymoron? Unobtrusive Javascript is by definition stuff where your site is still OK without it?
- mdg 17y agoI always thought unobtrusive javascript refers to how it is written. For example, using the inline onClick attribute would be considered obtrusive, because it is in the HTML. On the other hand, unobtrusive javascript would assign a function to some control when the window loads, effectively making the HTML pure.
- _pius 17y agoYou're both right. By separating the Javascript from the HTML, you make it easier for the site to degrade gracefully. (Though you still have to design specifically for graceful degradation if you're serious about it)
- lurkinggrue 17y agoThis is obviously some strange usage of the word improve, of which I was previously unaware.