Lazy loading is a method for optimizing a website by loading images (or iframes) on demand. If properly implemented, the browser should load the images that are at the top of the page first and wait to load the rest until the user starts to scroll down the page. This is something that is relatively …Continue reading "Three ways to load lazily"
This is going to be a relatively short post. We have been doing a lot of [x] vs [y] vs [z] posts lately and this one is no different. Today, I figured that we would look at Prototype.call() vs Prototype.apply(). Both apply() and call() are used to invoke functions. The difference is that call uses …Continue reading "Prototype.call() vs Prototype.apply()"
Ever since Apple bought and shut down Dark Sky, I have been struggling to figure out what to replace it with. I figured that this would be a good excuse to play with some weather APIs. I have done this once before but that was with Rivets and YQL (neither of which I can necessarily …Continue reading "Playing with the OpenWeather API: The basics"
Last week, we looked at string concatenation and I figured that this week, we could see what you could actually do with it. Back in 2014, I used a calculator to play around with PhoneGap. It might be time to play with the concept again. See the Pen Vue.js Calculator – v1 by Joe Steinbring …Continue reading "More fun with string concatenation"