Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<script>
document.write('<script src=' +
('__proto__' in {} ? 'zepto' : 'jquery') +
'.js><\/script>')
</script>
@madrobby

This comment has been minimized.

Copy link
Owner Author

madrobby commented Apr 2, 2012

Note that conditional comments are no longer supported on IE 10, thus the document.write ugliness.

@mathiasbynens

This comment has been minimized.

Copy link

mathiasbynens commented Apr 2, 2012

@madrobby

This comment has been minimized.

Copy link
Owner Author

madrobby commented Apr 2, 2012

@mathiasbynens ah, great, thanks!

@timw4mail

This comment has been minimized.

Copy link

timw4mail commented Apr 2, 2012

Couldn't you still use javascript conditional comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.