The thought for this approach came to me from this article. Horizontal navigation menus with drop-down submenus are a common design pattern. Usually they are implemented in CSS with the :hover pseudo-class, but this is problematic for touch screens (See: trentwalton.com/2010/07/05/non-hover/). It is difficult to reliably detect touch devices at the moment. As good a… Read more »
Posts Categorized: Building Web Sites
Most site designs include the main navigation menu in the header at the top of the html. Collapsing this menu on smaller devices saves critical top-of-page real estate so users can get to their content as quickly as possible without having to scroll past a bunch of links on every single page. The approach I’ll… Read more »
It’s a good rule of thumb.
“Lazy loading” (also called Conditional Loading) of content is becoming more and more common these days. It enables us to enhance performance by delaying the loading of purely decorative or nice-to-have page enhancements so that the core content arrives to the user more quickly. Another advantage of waiting until after the initial page load for… Read more »
I wish I could remember where I got this function in order to give credit, because I sure didn’t write it myself. Add the following code to the theme’s functions.php file and it adds an extra class to the body element that enables me to target pages (and posts, but usually I use it for… Read more »