Skip to main content
3 votes

Deferring Script wp-i18n causes a console error 'wp is not defined' - Gravityforms

It is necessary to exclude defer addition for files that have -js-after In my case, the error was caused by the files hooks.min.js and i18n.min.js. This function worked great in my case: function ...
Boris Michourin's user avatar
1 vote
Accepted

How to render initial posts on page load in a Gutenberg block using the Interactivity API?

You could consider running actions.getPosts on mount via data-wp-init like: <div … data-wp-init="actions.getPosts"> As per the documentation: This directive runs a callback only when ...
Wongjn's user avatar
  • 493

Only top scored, non community-wiki answers of a minimum length are eligible