<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pro-Tek Blog &#187; Polyfill</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/tag/polyfill/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pro-tekconsulting.com/blog</link>
	<description>For UI developers / UI designers and UI trends</description>
	<lastBuildDate>Thu, 05 Sep 2019 03:59:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.34</generator>
	<item>
		<title>WHAT&#8217;S THE DIFFERENCE BETWEEN A POLYFILL AND A SHIM?</title>
		<link>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-a-polyfill-and-a-shim/</link>
		<comments>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-a-polyfill-and-a-shim/#comments</comments>
		<pubDate>Wed, 12 Sep 2018 06:03:03 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[polyfill js]]></category>
		<category><![CDATA[Polyfill]]></category>
		<category><![CDATA[Shim]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2636</guid>
		<description><![CDATA[<p>What&#8217;s the difference between a Polyfill and a Shim? A Polyfill is a piece of code that checks if a certain Browser API is available across all browsers. If not, you can write a polyfill to manually implement it. A Shim is a piece of code that intercepts an already existing API (not necessarily Browser) [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-the-difference-between-a-polyfill-and-a-shim/">WHAT&#8217;S THE DIFFERENCE BETWEEN A POLYFILL AND A SHIM?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>What&#8217;s the difference between a Polyfill and a Shim?</h4>
<p>A Polyfill is a piece of code that checks if a certain Browser API is available across all browsers. If not, you can write a polyfill to manually implement it.</p>
<p>A Shim is a piece of code that intercepts an already existing API (not necessarily Browser) and implements a different action/ behavior. Typically, Shims are used for backward compatibility.</p>
<p>For example, let us take two browsers &#8211; one running the ES5 engine and ES3. In ES5, we can:</p>
<p>var currentDate = Date.now();<br />
But in ES3, this would fail and we would need a Shim like:<br />
if(!Date.now) {<br />
Date.now = function shimmingFunc() {<br />
return new Date().getTime();</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/whats-the-difference-between-a-polyfill-and-a-shim/">WHAT&#8217;S THE DIFFERENCE BETWEEN A POLYFILL AND A SHIM?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pro-tekconsulting.com/blog/whats-the-difference-between-a-polyfill-and-a-shim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
