DZone
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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Languages
  4. 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 · Interview
Like (0)
Save
Tweet
Share
4.00K 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

  • Distributed Tracing: A Full Guide
  • Rust vs Go: Which Is Better?
  • mTLS Everywere
  • Strategies for Kubernetes Cluster Administrators: Understanding Pod Scheduling

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • 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: