Skip to content

Commit

Permalink
fix: Set form-builder scripts to use type module.
Browse files Browse the repository at this point in the history
  • Loading branch information
danimalweb committed Jan 9, 2024
1 parent ed70962 commit 8a915f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/lib/clean.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function remove_extra_markup()
if (!is_admin() && $GLOBALS['pagenow'] != 'wp-login.php') {
function add_defer_attribute($tag, $handle)
{
if ($handle === 'tofino') {
if ($handle === 'tofino' || $handle === 'form-builder') {
return str_replace('script src', 'script type="module" src', $tag);
} else {
return str_replace(' src', ' defer src', $tag);
Expand Down

0 comments on commit 8a915f1

Please sign in to comment.