NOTE: This post assumes you know a lil somethin’ somethin’ about Adobe Analytics, formally known as Omniture.
Recently I had the need to serialize an event with the value of a DTM Data Layer. Doing an internet search did not bring up anything nor was Adobe Analytics Methods of Event Serialization documentation helpful. Serializing an event is pretty straight forward.
Here’s the syntax for serializing an event:
If you need to serialize an event with the value of a variable, here’s the code for that:
var myVariable = digitalData.someInfo.somethingSpecific;
Lately, I’ve been seeing some chatter about Motion UI. Motion UI is the practice of using subtle animation to give affordance in a User Interface. With Flat Design in full effect, sometimes context can be absent from the UI. Motion helps the user to realize what just happened or where they just came from, thus providing a better User Experience.
What surprises me about Foundation 4 & 5 is that there’s no animation options for their mobile Top Bar menu. By tapping on the Top Bar hamburger menu icon, the menu list snaps open! This can be jarring to the user, so I decided to add a subtle transition easing effect while opening and closing the menu.
Out-of-the-box, Foundation sets a height of 45 pixels on the .top-bar element. You will need to change this property to max-height. I’ll explain later. After you do that, then add the transition CSS as seen below.
Recently, I needed to reuse some markup for a component. The markup to be reused was to be put inside a modular, HTML component in a side panel of our application. Alternatively, it was the main content on another page. The problem is that the component needed to respond to the width of the side panel, which only took up 2 columns of an 8 column grid. So, basically I needed that media query to display the “mobile view” inside that 2 column panel. The CSS styles for the mobile view cannot be rendered unless the media queries conditions were met. I used the same markup for the side panel, but without the media queries firing off, the layout was not stacking the way I needed it to (figure 1). My first thought was to have 2 separate HTML snippets, but that’s not practicing modular design, so I started looking for a solution.
I’ve always been obsessed with icons and hieroglyphs, so as a web developer, I got all excited with the sudden popularity of icon fonts. Using icon fonts, as a replacement for images, has many benefits. The most important, in my opinion, is performance. Because icon fonts are vector and are contained in a single file, they perform better then, say, using a sprite as an image container. Although, both a sprite and a font file make a single HTTP request, the icon font file is usually a lot smaller.
Another important benefit of using icon fonts is optimization for high-resolution screens. The media query is a wonderful thing, but if it can be avoided for swapping images for high-resolution screens, it’s a quick win – one file for all screens and device types! Because icon fonts are vector, they will scale without loss of quality and again, when you compare file size and the single HTTP request, it’s a no-brainer.
With icon fonts, it’s also super easy to change color and size using CSS. As browser support for CSS3 becomes more advanced, you will be able to do all kinds of other cool stuff, like apply gradients, drop shadows and background textures.
There are a few icon font generators out there, but I’m using Icomoon because you can import your own vectors, import other icon font packs, only include the icons you need, use the Private Use Area feature, etc. The best part about Icomoon is that it’s 100% free and open!
The first thing you’ll want to do is go to http://icomoon.io/app/. When you first enter the app, you will see icons galore! If the icons that are needed are on the screen, you can simply click to highlight the icons you want. You must make sure that the Select tool is selected, but I’m pretty sure it is by default. There are two other tools available. The second tool is the Delete feature. When selected, it removes the icon from the icon library that displays on your screen. The third tool, is the Edit tool. When selected, simply click on an icon to edit. You will see a pop-up window (figure 1) with the icon you selected and a few features including Rotate, Flip, Scale and Move. You can also download that icon as an SVG. This is helpful if you want to take it into Illustrator and make changes to the icon that wouldn’t be able to made inside of Icomoon.
Yesterday, my girlfriend and I decided to venture out into the thunderstorms to find something to eat. We ended up at Del Taco since my girlfriend wanted mexican and had never been there. I had been there before, but it’s been a long time.
As soon as we walk in, we notice that there is absolutely no one in there besides the staff. As we approach the ordering counter, this very hyper teenage cashier points at me and says “Dude, I love your shirt!” I had to look down because I forgot what shirt I was wearing. At first I thought I was wearing my Firefox logo t-shit because all the young kids comment on it, but it was instead my Bob Marley t-shirt. I reply, “Thanks dude!”. We proceed to order 6 $1 classic tacos, at which point the cashier replies “Or, for the same price, you can get 12 mini tacos.” The he points at me and says “I’m just thinking like a stoner dude! That’s what I would do”. So I reply, “we’ll take the 6 $1 classic tacos please.” I couldn’t believe he did this right in front of his manager and the rest of the crew, who were just standing there waiting for the order to give them something to do.
Last month I was fortunate enough to attended the inaugural Artifact Conference in Austin, Texas. Artifact is “a two-day, single-track conference for DESIGNERS adapting to the challenge of designing for a MULTI-DEVICE world”. That description was exactly what I was looking for while preparing myself to dive into the world of Responsive Web Design.
It all started with Jennifer Robbins having an idea for a pow-wow to discuss a new workflow for a multi-device web, since our old processes and workflows are no longer cutting it. She tweeted about it and Christopher Schmitt from Environment for Humans obliged within two minutes. Thank you both!
For me, Facebook has run it’s course, so I deleted my account. Sure, it’s a great place to connect with your family and friends and stalk that old crush from high school, but does it really benefit you and your family? One of the reasons that I’ve waited this long is because my mother joined Facebook a while back and I love my mommy! She loves seeing pictures and videos of her grand kids, but is that enough for me to continue to steal time from my children and bring stress and anxiety upon myself? Is Facebook the only channel in which to share your life with family and friends? Does Facebook have a monopoly on social interaction? I don’t think so. I’m on Twitter, Instagram, Foursquare, Flickr, Youtube, etc. You can email me at elizeo@interactivebynature dot net and I have my own blog which you’re reading right now.
Back in February I attended the HTML5 Denver Users Group presentation – Making Your UI Scream (Not Your Users) by Wesley Hales. From the title of the presentation you can probably guess that his talk was about website performance. Most of what he had to say about performance, I’ve heard before, but one of the things that Wesley brought up was reflow. I’ve built plenty of websites and performance is always at the top of my list, but I never looked too much into reflow. This was my biggest takeaway from Wesley. Now that performance for mobile websites is a huge consideration, I’ve been interested in other micro-optimizations. Maybe another reason that I haven’t taken reflow into consideration before is because I follow one of Wesley’s rules: Don’t let micro-optimizations weigh you down. Finish the project first.
More On Reflow
Reflow is the process in which the browser calculates the positions and geometries of all the elements in the DOM tree for visual presentation. Reflow is a user-blocking browser operation that can effect the UX, and in this day-and-age of immediate gratification, performance is a very important UX consideration. One of the most powerful things about jQuery is it’s ability to easily manipulate the DOM with methods like .show(), .hide() and .attr(), but in order to minimize reflow you should avoid touching the DOM as much as possible.
We want the sex and not the kids. We want the check and not the job. Most of all we want the blessing but don’t answer to God. Got a closet full of clothes and empty bank accounts. If you need a handout, we got nothing; we bounce!
So, we do whatever, eat whatever, smoke whatever, f*** whoever, wear whatever, shake whatever, sell whatever, it’s now or never.
If Grandma and Grandpa saw how we behaved, they would probably spin around like yo-yo’s in their grave.