<?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>Speed Up Archives</title>
	<atom:link href="https://www.johnpatel.com/category/speed-up/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>SEO, WordPress, Make Money, Online Jobs, Reviews</description>
	<lastBuildDate>Mon, 01 Apr 2019 18:57:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
<site xmlns="com-wordpress:feed-additions:1">145939692</site>	<item>
		<title>Defer Parsing of JavaScript &#8211; 100% Working [Issue Solved]</title>
		<link>https://www.johnpatel.com/defer-parsing-of-javascript/</link>
		
		<dc:creator><![CDATA[JP]]></dc:creator>
		<pubDate>Fri, 26 Oct 2018 18:47:00 +0000</pubDate>
				<category><![CDATA[Speed Up]]></category>
		<guid isPermaLink="false">https://www.johnpatel.com/?p=766</guid>

					<description><![CDATA[<p>Are you looking for the solution of Defer Parsing of JavaScript error? You will get your answer in this tutorial. The script I will provide is 100% working. Also, it is safe and easy to place on your website. How to Defer Parsing of JavaScript? First of all, you have to open your website&#8217;s HTML [&#8230;]</p>
<p>The post <a href="https://www.johnpatel.com/defer-parsing-of-javascript/">Defer Parsing of JavaScript &#8211; 100% Working [Issue Solved]</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Are you looking for the solution of <strong>Defer Parsing of JavaScript</strong> error? You will get your answer in this tutorial. The script I will provide is 100% working. Also, it is safe and easy to place on your website.</p>
<p><img decoding="async" src="https://www.johnpatel.com/wp-content/uploads/2018/10/Defer-Parsing-of-JavaScript.jpg" title="Defer Parsing of JavaScript" alt="Defer Parsing of JavaScript"></p>
<h2>How to Defer Parsing of JavaScript?</h2>
<p>First of all, you have to open your website&#8217;s HTML file and place the following code in <strong>&lt;HEAD&gt;</strong> section.</p>
<pre><xmp>
<script>
function parseJSAtOnload() {
var element = document.createElement("script");
element.src = "your_script.js";  //<-- Enter the script which you want to defer.
document.body.appendChild(element);
}
if (window.addEventListener)
window.addEventListener("load", parseJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", parseJSAtOnload);
else window.onload = parseJSAtOnload;
</script>
</xmp>
</pre>
<h4>Defer Multiple Javascript Files in One Script</h4>
<p>This script is used to defer multiple files of js. Just need to place this code in your HTML file.<br />
<strong>Note:</strong> Replace your original scripts with your_script1.js, your_script2.js, your_script3.js and so on.</p>
<pre><xmp>
<script>
function parseJSAtOnload() {
var links = ["your_script1.js", "your_script2.js", "your_script3.js"],
headElement = document.getElementsByTagName("head")[0],
linkElement, i;
for (i = 0; i < links.length; i++) {
linkElement = document.createElement("script");
linkElement.src = links[i];
headElement.appendChild(linkElement);
}
}
if (window.addEventListener)
window.addEventListener("load", parseJSAtOnload, false);
else if (window.attachEvent)
window.attachEvent("onload", parseJSAtOnload);
else window.onload = parseJSAtOnload;
</script>
</xmp>
</pre>
<p>As a result, your error will be removed from the speed test tool. This method is very safe and easy to install. It will not harm your website design or functionality. Another advantage is, it is supported in all frameworks.</p>
<p>Is this article helpful? If yes, please share it.</p>
<p>The post <a href="https://www.johnpatel.com/defer-parsing-of-javascript/">Defer Parsing of JavaScript &#8211; 100% Working [Issue Solved]</a> appeared first on <a href="https://www.johnpatel.com">JP</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">766</post-id>	</item>
	</channel>
</rss>
