Adding Prototype.js in WordPress to Improve Website Speed

Increase speed with prototype.js in wordpress

Adding Prototype.js in WordPress to Improve Website Speed

Usefulness Prototype.js in wordpress is to improve website speed. This file is derived from the Javascript, how to adding in wordpress self-host? here I already own experiment and test to my site, but the result is very satisfactory. You can check on Google Pagespeed Insights.

Many ways to improve the speed on wordpress, you can use CDN Cloudflare, Plugin Jetpack, Plugin WP Super Cache, Plugin WP Minify, Lazy Load or compress the Zlib Output Compression in Cpanel. This website is also in sync with Cloudflare, with the addition of file “prototype.js” the results are better. Here I edit a theme in Cpanel, because disable in Theme Editor.

(See also: How to increase website speed at wordpress with plugin)

Follow the steps below:

  • Log-in to Cpanel, then select “File Manager”.
Improve website with Prototype.js in WordPress
Edit File on Cpanel
  • Go to “/public_html/wp-includes/js” create a file with the name “prototype.js” and click “Edit”.
Improve website with prototype.js in wordrpess
Edit File Prototype.js
  • Copy the source code here, and put it in the file “prototype.js” and Save.
  • Edit “header.php” Go to “/public_html/wp-content/themes/your_theme/header.php” Right click your mouse and select “Edit”.
Increase speed website with prototype.js in wordpress
Edit header.php
  • And add the following code, the above code </head> replace “https://www.asepms.com” with the name of your site, and Save.
Improve website with prototype.js in wordpress
Edit File Prototype.js
<script type=”text/javascript” src=”https://www.asepms.com/wp-includes/js/prototype.js”></script>
  • The usefulness of this code is to call the Javascript Source, reducing the weight of your website loading.
  • Check your website in Google Pagespeed Insights, and this is my result. Amazing!!
Increase website speed with prototype.js in wordpress
Check on Google Pagespeed Insights

Conclusion

Way above will help reduce your wordpress loading. Recommend to install the plugin WP Super Cache from Automattic, because in sync with the “prototype.js” you can check in the plug-in and select “CDN” to work perfectly. If you are confused, or will ask something please comment below or join in the forum asepms.com, have a great day.

Adding Prototype.js in WordPress to Improve Website Speed
4.6 (92.31%) 39 votes

Follow Me

Asep Ulchre

This website written by single admin, he's like coffee, like the python programming language and art lovers.
Follow Me
%d bloggers like this: