DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > JavaScript Polyfills for HTML5: Introduction and Resource List

JavaScript Polyfills for HTML5: Introduction and Resource List

John Esposito user avatar by
John Esposito
·
Dec. 13, 11 · Web Dev Zone · Interview
Like (0)
Save
Tweet
3.81K Views

Join the DZone community and get the full member experience.

Join For Free

Browsers don't support your favorite HTML5 feature? Not quite 'no problem', but 'much smaller problem' if you write JavaScript to handle the unsupported code and make up the difference.

Now, it might actually be fun to write this 'fill-in-the-gaps' JavaScript (known as 'polyfills') by yourself, if only to get to know HTML5 standards -- and different browsers' viscera -- more intimately. But if you're just trying to build a website, lack of HTML5 support is just annoying.

Not so if you're using someone else's JavaScript polyfills. And plenty of those exist, for most of HTML5's features, and even for most older browsers.

  • If you'd like a fairly high-level overview of JavaScript polyfills for HTML5, including a good selection of the most useful and best currently available, check out this presentation by Addy Osmani. Includes some screenshots of some impressive tech demos (WebGL in IE6!), useful tips on feature detection (using Modernizr), suggestions to keep performance reasonable (including script loaders for conditional loading, to avoid loading polyfills unless they're needed). And if you do want to get your hands dirty writing your own polyfills, Addy discusses some best practices for feature detection at both high and low levels of confidence (which can get subtle at times).

  • If you just want a huge list of available polyfills, then the most complete list is almost certainly this one, put together by the HTML5-via-JavaScript experts at Modernizr.


Check out Addy's intro or Modernizr's list, and worry no more whether browsers support your particular favorite HTML5 feature.

HTML JavaScript

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How the TypeScript ReturnType Works
  • What Is HttpSession in Servlets?
  • Creating Event-Based Architecture on Top of Existing API Ecosystem
  • Is Java Still Relevant?

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo