Render Blocking Js – Exclude Js

by admin

The Render Blocking JS faeture moves all js resources to footer and this can sometimes cause problems. In this case the problem can be solved by excluding some js resources.

First of all you need to be sure that the js source is not affected by any other js sources. Secondly, you need to add data-wpfc-render="false" attribute as below.

<script data-wpfc-render="false" src="http://www.your-site-url.com/sample.js"></script>

Note that the Render Blocking Js feature automatically excludes the js source that have the data-cfasync="false" attribute.

<script data-cfasync="false" src="http://www.your-site-url.com/sample.js"></script>

Related articles

Placeholder Image
Minify Js

Compacting JS code can save many bytes of data and speed up downloading, parsing, and execution time.

Placeholder Image
Render Blocking Js

Minify Html Plus
Minify Html Plus

The feature minifies the html source more.

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.