JavaScriptin pakkaaminen ja yhdistely automaattisesti Visual Studiossa

Joskus yksinkertaisin ratkaisu on paras.

As you begin developing more complex client-side functionality, managing the size and shape of your JavaScript includes becomes a key concern. It’s all too easy to accidentally end up with hundreds of kilobytes of JavaScript spread across many separate HTTP requests, significantly slowing down your initial page loads.

To combat this, it’s important to combine and compress your JavaScript. While there are useful standalone tools and HttpHandler based solutions to the problem already, none of them work quite how I prefer. Instead, I’m going to show you my dead-simple method for automatically compressing and combining script includes.

encosia.com/… →

Vakava muistivuotobugi PNG-läpinäkyvyydessä Internet Explorerissa

Robert Nyman:

Be very very careful when you use 24-bit PNG images with alpha transparency in Internet Explorer, because apparently there is some serious memory leak issue/bug with it.

Kaveri olisi kyllä voinut vaivautua tekemään test casen, mutta hyvä tietää. Ratkaisuksi tarjotusta filtterin käytöstä on minulla kylläkin kaatumisongelmia kipeässä muistissa, eli ei siihenkään oikein uskalla turvautua.

robertnyman.com/… →

ECMAScript 5:n strict-moodi, JSON-tuki ja muita muutoksia

John Resig jatkaa ECMAScript 5:n kevyistä uudistuksista, edellisen, objektien muutoksia käsittelevän osan perään.

Altogether I think ECMAScript 5 makes for an interesting package. It isn't the massive leap that ECMAScript 4 promised but it is a series of respectable improvements that reduces the number of obvious bugs while making the language safer and faster.

ejohn.org/… →

Yhden klikkauksen syötevalidointia

Sam Ruby:

If you are…

* A frequent user of Firefox for browsing the web.
* An occasional user of the FeedValidator.
* An infrequent user of Firefox’s feature for subscribing to feeds.

… then you might find it useful to register the FeedValidator as a “Feed Reader”.

No ei ehkä ihan kaikissa tapauksissa yhden klikkauksen, mutta melkein kuitenkin.

intertwingly.net/… →