Docs / JavaScript / Defer Inline JavaScript

Defer Inline JavaScript

Inline scripts are JavaScript codes that are executed immediately. There might be inline scripts that depend on external JavaScript files. When you enable "Defer JavaScript", some inline scripts may throw errors.

When you enable "Defer Inline JavaScript", FlyingPress will convert the inline scripts to make load deferred.

Before:

<script>
  alert("hello");
</script>

After:

<script
  src="data:text/javascript,alert%28%27hello%27%29"
  type="text/javascript"
  defer
></script>