corenominal

Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

Optimising GIFs for the Web image/svg+xml

Interesting that the first tip is to not use gifs at all.

Surprisingly, the lossless compression algorithm used on GIFs is so unoptimised that video formats such as MP4 or WebM will provide a smaller file size than GIF images. Because of this, one solution to the GIF performance problem is to not use GIFs at all, and to replace them with autoplaying, looping, HTML5 Video.

248: AMP – ShopTalk image/svg+xml

Getting AMP’d with AMP. We’re going to talk about the #hotdrama about AMP with a couple of AMP experts.

Before listening to this episode, I was completely uninterested in AMP. After listening, I’m still uninterested. The proponents did nothing to sell it to me.

That said, I can imagine how AMP could be good for end users. For example, last night I was listening to a podcast and browsing the web on my iPhone, I had just started reading an article on Boing Boing when a video advert started playing, which in-turn muted the podcast that I was listening to. Grrr. I’m thinking that AMP could have prevented this annoyance, but then again, I’m also thinking the owners of Boing Boing could also have prevented it by not deploying obnoxious ads.

 

scrollMonitor image/svg+xml

A simple and fast API to monitor elements as you scroll […] The scroll monitor was designed to be very fast. On each scroll event the DOM is only touched twice, once to find the document height and again to find the viewport top. No variables are declared, nor are any objects, arrays, or strings created. Watchers are very cheap. Create them liberally.

Another scroll monitor, this one looks quite efficient. The stress test demos are a nice touch.

HTML & CSS Is Hard – A friendly web development tutorial image/svg+xml

Learning HTML and CSS is hard, but it doesn’t have to be. This 14-chapter tutorial is one of the friendliest HTML and CSS guides on the Internet. We’ll walk you through everything from selecting a good text editor (which is surprisingly important) to building full-fledged, professional-quality web pages from scratch.

This is possibly the most comprehensive guide to web development ever. OK, possibly not, but it is really rather good. The next time somebody asks me where to start, I’ll know where to point them.

WordPress REST API Vulnerability Exploits Continue image/svg+xml

Over the weekend the attacks increased and WordPress security firms have seen more attempts blocked by their firewalls. Sucuri, the website security firm that reported the vulnerability to WordPress, was tracking the “Hacked by w4l3XzY3” campaign last week and estimated 66,000 defacements. That particular campaign has now passed 260,000 pages indexed by Google. It is one of nearly two dozen defacement campaigns targeting the vulnerability.

Ouch! The WordPress REST API has certainly gotten off to a rocky start. Personally, I love the REST API, but I’m thinking this hasn’t helped convince its detractors that it should remain as part the WordPress core.