background preloader

Taking Advantage of HTML5 and CSS3 with Modernizr

Taking Advantage of HTML5 and CSS3 with Modernizr
Ten years ago, only the most cutting-edge web designers used CSS for layouts and styling. Browser support for CSS layouts was slim and buggy, so these people advocated for web standards adherence, while creating hacks that made CSS layouts work in all browsers. One hack that became widely used was browser sniffing: Detecting which browser and version the user had by looking at the navigator.userAgent property in JavaScript. Browser sniffing allowed for quick and easy code forking, allowing developers to target different browsers with different instructions. Article Continues Below Today, CSS-based layouts are commonplace and every browser has pretty solid support for them. Modernizr: the feature-detection library for HTML5 and CSS3#section1 Modernizr is an open-source JavaScript library that makes it easy for web designers to support different levels of experiences, based on the capabilities of the visitor’s browser. Getting Started with Modernizr#section2 <! First we set the stage: Related:  Tools

Introduction to RequireJS In this tutorial we are going to take a look at RequireJS, an AMD compatible asynchronous script loader that is incredibly powerful. In my experiments with RequireJS I've hugely enjoyed working with it and will be using it heavily in my future development. This is a fairly heavy post as far as complexity goes, but please do stick with it. I struggled to get my head around RequireJS and AMD for a long time but once it "clicks" it is really awesome. The basic use case for RequireJS is as a basic script loader, but in this tutorial I wont concentrate on that, but on its uses for modular development. To do this, we are going to build an app (sort of - it's all very basic snippets of code) that has dependencies. Firstly, create your project directory and the structure within. ├── app.js ├── index.html ├── lib │ ├── modules │ │ └── template.js │ ├── require.js │ └── underscore.js app.js is my main file, we will look into this shortly.lib/modules is where all my self-written modules will go.

Internet Explorer 9 destroys Chrome 6 in HTML5 speed test (video) I think the video speaks for itself! If you can't watch the video: IE9 is some orders of magnitude faster than Chrome when it comes to hardware-accelerated canvas rendering. In some other initial benchmarks, IE9 is about 30% slower than Chrome 6 in the SunSpider JavaScript benchmark -- and about 10% faster than Firefox 3.7. I also tested FishIE with Opera and Firefox -- and believe it or not, Opera's a lot faster than both Chrome and Firefox! Anyway, if you missed the news, IE9 developer preview 3 came out earlier today -- Lee's post has more info, if you're curious, or simply download it now. Update: Firefox 3.7, with hardware acceleration enabled, keeps up with IE9 -- check the video. Tags: canvas, chrome, firefox, gpu, hardware acceleration, HardwareAcceleration, html5, ie, ie9, internet explorer, InternetExplorer, opera, web browser, WebBrowser

Modernizr Documentation What is Modernizr? Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications. Many of these features are already implemented in at least one major browser (most of them in two or more), and what Modernizr does is, very simply, tell you whether the current browser has this feature natively implemented or not. Unlike with the traditional—but highly unreliable—method of doing “UA sniffing,” which is detecting a browser by its (user-configurable) navigator.userAgent property, Modernizr does actual feature detection to reliably discern what the various browsers can and cannot do. After all, the same rendering engine may not necessarily support the same things, and some users change their userAgent string to get around poorly developed websites that don’t let them through otherwise. Modernizr aims to bring an end to the UA sniffing practice. CSS features

Twitter User Profiles, The Anatomy of a Twitter Profile Review When other users receive a notification that you followed them on Twitter, there’s a good chance that they will click through that email to check out your profile. When they hit your profile on Twitter, you have about 10-15 seconds to impress them enough that they will follow you back. Given that you only have a few seconds, are you providing the right information in your profile, is there enough information, is it accurate, and can they get a feel for who you are and what you do? These are all good questions that you should be thinking about. When I’m helping clients with Twitter marketing, I often get questions about what to tweet, Twitter etiquette, who to follow, how to engage users, etc. However, it’s usually not long before the topic of Twitter profiles come up. The Anatomy of a Twitter Profile Review Based on what I explained above, I thought it would be a good idea to provide the anatomy of a Twitter profile review. Your Name, Twitter Handle and Avatar (Image or Photo)

Understanding RequireJS for Effective JavaScript Module Loading Modular programming is used to break large applications into smaller blocks of manageable code. Module based coding eases the effort for maintenance and increases reusability. However, managing dependencies between modules is a major concern developers face throughout the application development process. RequireJS is one of the most popular frameworks around for managing dependencies between modules. This tutorial examines the need for modularized code, and shows how RequireJS can help. Loading JavaScript Files Large applications often require a number of JavaScript files. purchase.js products.js credits.js In this example, we are trying to purchase a product. What Can Go Wrong? In this example, purchase.js depends upon both credits.js and products.js. Here, initialization is done before credits.js is loaded. Introduction to RequireJS RequireJS is a well known JavaScript module and file loader which is supported in the latest versions of popular browsers. Creating Applications with RequireJS

Seven tips for managing the overwhelming to-do list No matter how much planning, preparation, and winnowing of your schedule you do, there are still times when responsibilities can wreak havoc on your to-do list. Whether at work or at home, there will be days or weeks when a lot of things just have to get done. How you face and perceive these challenges, though, will determine your stress and anxiety levels throughout this process. Maintain perspective. Now is the time to remind yourself of the big picture and of the temporary nature of this stress.

Grunt for People Who Think Things Like Grunt are Weird and Hard Front-end developers are often told to do certain things: Work in as small chunks of CSS and JavaScript as makes sense to you, then concatenate them together for the production website. Compress your CSS and minify your JavaScript to make their file sizes as small as possible for your production website. That’s not a comprehensive list of course, but those are the kind of things we need to do. I bet you’ve heard of Grunt. But let’s face it: Grunt is one of those fancy newfangled things that all the cool kids seem to be using but at first glance feels strange and intimidating. Let’s nip some misconceptions in the bud right away Perhaps you’ve heard of Grunt, but haven’t done anything with it. I don’t need the things Grunt does You probably do, actually. Grunt runs on Node.js — I don’t know Node You don’t have to know Node. I have other ways to do the things Grunt could do for me Grunt is a command line tool — I’m just a designer I’m a designer too. Navigate to your project’s directory. OK.

Lovely empty shop front in Newport..big money elsewhere I bet Meet Grunt: The Build Tool for JavaScript If you’re working on a large project, you’ll no doubt have a build script or a bunch of task scripts to help with some of the repetitive parts of the process. You might use Ant or Rake, depending on the language the project is written in. But what do you use if the project is primarily JavaScript? That’s the problem Ben Alman set out to solve when he created Grunt. What exactly is Grunt? Grunt is a task-based command line build tool for JavaScript projects. Here’s the idea: when working on a JavaScript project, there are a bunch of things you’ll want to do regularly. That’s what Grunt aims to be. For more Grunt intro goodness, see Ben’s post on his personal blog and the Bocoup blog. Grunt is built on Node.js, and it’s available as a package via the Node package manager (npm). You’ll notice it installs quite a few dependencies; there are other npm packages that Grunt uses. You’ll notice a lot of initial output. Keep going and fill in the rest of the fields.

Twitter Marketing Best Practices For Internet Marketers There is a very thin line between marketing and spamming. What some may consider as marketing may appear as spamming to others. Twitter marketing has some best and some worst practices. I will be concentrating on the best practices for now. Businesses and internet marketers are always looking for strategies to make it big at twitter, but what they fail to understand is that twitter marketing is a simple concept. 1. Twitter started with the purpose of engagement and it will remain like that for at least 1-2 years. 2. Repeating tweets may seem as spamming but it is a marketing technique used by many twitter honchos. 3. A celebrity can afford to be aloof, as people will still be retweeting him or her. 4. This is the most fun and fruitful twitter marketing technique that I have tried and has worked for me. Let me take a small example, I had posted an article on 11 types of bloggers (I had categorized bloggers into 11 different categories) Instead of using I used this 5. 6.

Grunt: The JavaScript Task Runner FAQ Pages: Best Practices and Examples Jun 24 2010 FAQ pages are a vital part of many websites. While not every site needs one, if you’re selling something, providing a service, or giving information about a complex subject, an FAQ can make life much easier for your visitors. The format of an FAQ varies considerably from site to site, so there’s not really one “right” design method. Focus on Information We all know content is king. Information Comes First The entire point of an FAQ page is to provide information to your visitors. The Lulu website offers a straight-forward, content-focused design for their FAQ pages. Avoid flashy designs, gimmicky layouts, and other design elements that detract from your page’s content. While Amazon’s dual sidebars make the page feel a little cluttered, they still focus on the content within the center column. Organizing Longer FAQs Think about how best to organize your FAQ page. Categories are the best way to organize a longer FAQ. Make It Easy to Find Assist Visitors through Interaction Column View

mishoo/UglifyJS My lunchtime apple...I must have words with lily

Related: