How to Defer Parsing of JavaScript in WordPress

 Duplicating your existing WordPress post or page can be useful in many situations. When you redesign your website, you can use the copy as a template or a reference for future posts.

Thankfully, there are many ways to clone a page or post in WordPress. This tutorial will explain those various methods, so sit tight and keep reading!

Duplicating a Page or Post with the WordPress Plugin 
The easiest way to copy a page or post is to use a plugin. Upon activation, cloning posts and pages is only one click away!

Take a look at our selection of the best WordPress plugins for duplicating your posts and pages, as well as how to use them:

1. Duplicate Post 

Plugin is a great plugin to clone a duplicate post WordPress page or post. The duplicate post plugin is one of the options known for this purpose. In addition to copying content, you can also duplicate comments, slugs, menu orders, and more!

In addition, the plugin allows you to add title prefixes or suffixes, so you will know which is the original and which is the copy.

You set “Copy Off” as the title prefix. If you create a duplicate titled “What is WordPress”, the name of the duplicate will be “Copy What is WordPress”.

To clone your WordPress posts or pages using duplicate posts, follow these simple steps:

Install and activate the plugin. 

Go to your WordPress dashboard, then click Page -> All Pages (if you want to clone a page) or Post -> All Posts (if you are going to clone a post). 

The Duplicate Post plugin allows you to clone or create a new draft of your post and page. 
Click Clone to duplicate the selected post, or choose a new draft to create a cloned version of the chosen post and open it in the post editor. 

2. Duplicate Page and Post 

Duplicate Page and Post plugin helps you clone your page or post Duplicate pages and posts enable you to quickly clone WordPress pages and posts.  This plugin is relatively easy to use. You just need to follow these steps:

Click “Duplicate” to clone your WordPress post or page. 
The cloned post or page will appear as a new draft with the same name as the original. Open the copy to edit the content. 
3. Post Duplicate 
Post Duplicator is an amazing WordPress plugin to clone your post or page. 
Post Duplicator allows you to create an exact replica of the selected post while maintaining custom fields and custom taxonomies.

How to duplicate using a WordPress page or post duplicate plugin:

Install and activate the Post Duplicator plugin. 

Hover over the post or page you want to duplicate, and click on the duplicate post or duplicate page. 
Click “Duplicate Post” or “Duplicate Page” to create a new copy of the page or post. 
There are some settings that you can customize for duplicated posts. Go to Tools -> Duplicate Posts and set the status of the post (as draft, published, or original), post type, and post date. It is also possible to adjust duplicate titles and slugs.


addition to using duplicate WordPress pages or post plugins without plugins, you can also do some code to duplicate WordPress pages and posts. While this method sounds like a bother, it is actually quite simple.

When you open a website, your browser will retrieve the site content from the server and load the code from top to bottom. However, if it discovers JavaScript, the loading process will be interrupted until it finishes downloading all JavaScript.

To solve this problem, you can parse JavaScript, which allows the browser to load the entire content without waiting for the script to load. By implementing this function, parsing JavaScript will negatively affect the loading time of your website.

Keep in mind that a lot of JavaScript is not bad. After all, it is one of the essential web components, which allows you to increase the functionality of your site.

The point is, you can get two main benefits:

Better User Experience – Visitors do not have to wait long to see the content of your website. 
Better SEO Ranking – Google bots can crawl your site faster. 
How to parse javascript in wordpress? 
This section will show you a step-by-step guide to postponing JavaScript parsing. To turn it off, we will also show you how to analyze the problem and test the changes after implementing the task.

1. Analyze the site 

To find out whether you should parse JavaScript in your WordPress website, analyze it using a site speed testing tool like GTMetrics. As an example, here is the display result of a website before implementing the method:


Please enter your comment!
Please enter your name here