Tutorials Page 77
IFRAME contentWindow is null
I like clean code so I do what I can to avoid unwanted JavaScript global variables. I initially thought that
keys(window)
would give mewindow
property leaks but that didn't work because browsers returned different results, so I moved on to using anIFRAME
to compare default...The New Divi 2.5 Will Save You Hours of Work
A couple of months ago, Elegant Themes released version 2.4 of their flagship theme, Divi. Divi 2.5 takes productivity and time saving to the next level as it includes new, exciting, and highly useful features. Divi 2.5's Exciting New Features Whenever a new feature is...
Get Global Variables with JavaScript
JavaScript globals are considered bad. And as a contributor to the MooTools project, I've heard this on a daily basis for the better part of a decade. MooTools got knocked for extending natives but also for placing objects in the global space, like
Browser
and$$
. I find...Insights for Achieving a Valuable eCommerce UX and the Themes to Accomplish It
To attract customers, the appearance of your online store is of course important, but there are other things to be taken into account if you want to keep your visitors interested. Your store should be beautiful in appearance, but the inner workings need to be "beautiful"...
Prevent WordPress from Loading “Next” Pages
I've been working to make this blog more performant by lazy loading everything I can think of, placing CSS and JavaScript into the HTML, and using data URIs; the common theme in these is reducing the number of requests on each page. One request I noticed (and hadn't anticipated) coming...
Learning Paths by O’Reilly
Each developer learns a given skill in their own way. Some developers prefer blog posts, others prefer to just dive into code, many rely on books, some on conferences, others on screencasts, and of course we all mix and match those methods to what we like. One...
Simple Image Lazy Load and Fade
One of the quickest and easiest website performance optimizations is decreasing image loading. That means a variety of things, including minifying images with tools like ImageOptim and TinyPNG, using data URIs and sprites, and lazy loading images. It's a bit jarring when you're lazy loading images and they just...
Git Update Commit Message
One of my faults as a professional developer is that my commit messages aren't always as descriptive as they could be. Sometimes I even notice a spelling error in them. Bleh -- that's not cool, man. When I do catch that my last commit message isn't good...
Convert Image to Data URI with JavaScript
Whenever I go on a "performance run" on a website, the first place I look is imagery. Why? Because you can save an image out of Photoshop, push it into ImageOptim or even TinyPNG, and save 70% on its file size. What do most developers not consider? Taking tiny image...
Detect if a Document Has Loaded with JavaScript
If you follow me on Twitter, you've probably noticed me whining about ChromeDriver. For some reason it seems as though tests run before the document has properly loaded, leading to transient test failures and loads of frustration. I thought the best way to avoid these problems was...