A few months back I was privileged enough to attend “An Event Apart- Chicago”, a two-day conference centered around learning new and upcoming techniques to, in short, make websites function and work better. Speakers ranged from content strategists and CSS3 styling gurus to hard-nosed database developers and CMS programmers. These are the guys that literally wrote the books on how I design for the web (not ironically I have 4 of those books sitting next to me as I write this).
One of the speakers at the conference that weekend was Eric Meyer, a leader in web design and CSS, who used his time to talk about how “Javascript will Save Us All”. His point was two-fold:
- First off, we designers can stop waiting around for browser makers to
give us what we want. We can use javascript and start using the advanced CSS we’ve been hearing about for years.
- Secondly, we can accelerate the process of weeding out elements that don’t work or aren’t applicable in real world situations.
The brilliance of this idea is obvious. For designers, javascript WILL save us. Adding a couple of scripts to our code can dramatically improve how we go about our day to day work. What is less obvious, however, is how javascript will save the internet in general and help improve the thin
gs that are important to our clients; i.e. search engine optimization, user interface design and mobile web applications just to name a few.
What’s amazing to many people is that these technologies are already being widely used, they just never realized it. Javascript, itself, dates back to the mid-1990’s, and has been an integral part of websites since. It has gone through multiple enhancements and revisions throughout the years (JScript, Ajax, etc.), but it has only been in the last few years that it has become more mainstream and widely used by front-end designers.
Wait a minute, that isn’t flash?
Only a few years ago, Flash websites were all the rage. Since browsers couldn’t support the design and function that we wanted, we turned to out-of-the-box programs like Macromedia/Adobe Flash that enabled us to get the dynamic interaction we were looking for. The problem was that unless you went to extreme measures and took a lot of extra time; most of the flash we were creating was dead space to search engines, leaving our clients with a slick looking site that no one could find.
Enter jQuery and Mootools. Both are javascript libraries that are designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. jQuery is the most widely used, with about 20% of the top 10,000 websites in the world using the library in some form. The best part about these tools is that they are extremely light-weight and easy to customize. Data can be retrieved from the server without having to reload the page, which decreases lag and helps boost site performance. Advanced styling and animations are contained in a few lines of code and can be changed quickly without the hassle of reworking an entire flash file. Using javascript, content isn’t hidden from search engine crawlers, giving a huge boost in site searchability. The content is also accessible to web users with visual impairments who use screen-readers, where before they were left out. And just in case you’re worried about these libraries working in older browsers? Don’t be. They even work in Internet Exployer 6+.
As an added bonus to clients, using these javascript libraries allows them to easily interact with Content Management Systems (CMS). A client with little to no experience in the web can now enter in their content through their CMS tool, save it, and javascript takes care of the rest. Dynamic features are handled inside the browser itself, and clients don’t have to get their hands dirty with writing markup, letting them focus on the most important part of their site: the content.
The mobile revolution is at hand…
As long as javascript has been around for the web, to mobile-web devices it is still a relatively new feature. New libraries are being developed, many within the past year, that enable designers to incorporate javascript based, mobile applications into our sites. However, these tools are still in their infancies. Many new devices coming out have javascript support, but code has to be specially customized to work inside mobile technology and significantly slow performance when enabled.
But help is on the way. Mobile development communities are springing up everywhere. The “Web App” craziness surrounding the iPhone has pushed the development of the mobile-web farther in just the past year than it did the nine years before, and javascript has had an integral role in moving the ball forward. Within the next few months and years, at the current rate of improvement, mobile devices will support full javascript functionality without the hit and miss we’ve become accustomed to.
The leaps and bounds that javascript has come since its inception has been amazing. It is an important tool for every web designer. In recent years it has become lighter, easier to use, and more dynamic than anyone would have dreamed of only 15 years ago. As we move forward, and as more and more technology looks to tap into this powerful resource, javascript will continue to revolutionize the web design and development business; making websites faster and more accessible for our entire web community.