<?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; AJAX</title>
	<atom:link href="http://www.pro-tekconsulting.com/blog/category/ajax/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>WHY DO WE USE WEBSOCKETS WHEN AJAX CAN DO THE WORK?</title>
		<link>http://www.pro-tekconsulting.com/blog/why-do-we-use-websockets-when-ajax-can-do-the-work/</link>
		<comments>http://www.pro-tekconsulting.com/blog/why-do-we-use-websockets-when-ajax-can-do-the-work/#comments</comments>
		<pubDate>Fri, 15 Jun 2018 03:07:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[WEBSOCKETS]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=2526</guid>
		<description><![CDATA[<p>Why do we use WebSockets when AJAX can do the work? There are a few reasons: Bi-directional communication.If your service is real-time you will typically not want to make a request and wait for a response; you want a response whenever the server is ready to send one. This isn&#8217;t possible with AJAX. Less server [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/why-do-we-use-websockets-when-ajax-can-do-the-work/">WHY DO WE USE WEBSOCKETS WHEN AJAX CAN DO THE WORK?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Why do we use WebSockets when AJAX can do the work?</h4>
<p><strong>There are a few reasons:</strong></p>
<p>Bi-directional communication.If your service is real-time you will typically not want to make a request and wait for a response; you want a response whenever the server is ready to send one. This isn&#8217;t possible with AJAX.</p>
<p>Less server overhead. The alternative to WebSockets are HTTP polling techniques (short- or long-polling) or Server Sent Events. Polling techniques are often inefficient or have a larger server burden than WebSockets. Server Sent Events aren&#8217;t standardized across browsers.</p>
<p>Smaller request frames. While less of a problem if you&#8217;re using HTTP/2, a lot of HTTP requests come with a lot of overhead that you likely don&#8217;t want/need for standard  requests. Websockets use much smaller frames for communication, resulting in slightly faster communication.</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/why-do-we-use-websockets-when-ajax-can-do-the-work/">WHY DO WE USE WEBSOCKETS WHEN AJAX CAN DO THE WORK?</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/why-do-we-use-websockets-when-ajax-can-do-the-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EXPLAIN &#8220;DEFERREDS&#8221;?</title>
		<link>http://www.pro-tekconsulting.com/blog/explain-deferreds/</link>
		<comments>http://www.pro-tekconsulting.com/blog/explain-deferreds/#comments</comments>
		<pubDate>Thu, 13 Aug 2015 04:37:43 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[AngularJS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Java Script]]></category>

		<guid isPermaLink="false">http://www.pro-tekconsulting.com/blog/?p=972</guid>
		<description><![CDATA[<p>Explain &#8220;Deferreds&#8221;? In their simplest form, deferreds allow you to specify what will occur when a computation/task completes or fails. jQuery&#8217;s specific implementation allows you to register callback functions that will run if a deferred resolves successfully, if it is rejected with errors, or if it is notified of some &#8220;progress&#8221; towards a resolved state [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/explain-deferreds/">EXPLAIN &#8220;DEFERREDS&#8221;?</a> appeared first on <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog">Pro-Tek Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h4>Explain &#8220;Deferreds&#8221;?</h4>
<p><img class="aligncenter size-full wp-image-973" src="http://www.pro-tekconsulting.com/blog/wp-content/uploads/2015/08/Deferreds.jpg" alt="Deferreds" width="791" height="566" /></p>
<ul>
<li style="text-align: justify;">In their simplest form, deferreds allow you to specify what will occur when a computation/task completes or fails. jQuery&#8217;s specific implementation allows you to register callback functions that will run if a deferred resolves successfully, if it is rejected with errors, or if it is notified of some &#8220;progress&#8221; towards a resolved state (more on that later).</li>
<li style="text-align: justify;">The &#8220;Deferred&#8221; pattern describes an object which acts as a proxy for some unit of computation that may or may not have completed.</li>
<li style="text-align: justify;">The pattern can apply to any asynchronous process: AJAX requests, animations or web workers to name a few.</li>
</ul>
<p><strong>Important to understand:</strong></p>
<ul>
<li style="text-align: justify;">Deferreds can be passed around indefinitely, and callbacks can continue to be added during the entire lifetime of the deferred object.</li>
<li style="text-align: justify;">The key to this behavior is callbacks registered with the deferred will run immediately if the deferred is already resolved.</li>
<li style="text-align: justify;">You don&#8217;t need to worry if the asynchronous unit of computation (e.g. an AJAX request) is finished or not.</li>
</ul>
<p>The post <a rel="nofollow" href="http://www.pro-tekconsulting.com/blog/explain-deferreds/">EXPLAIN &#8220;DEFERREDS&#8221;?</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/explain-deferreds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
