No Ajax when jQuery loads in footer
-
The inline JavaScript used by plugin (
function getAjaxScript()
) is printed immediately after the subscription form. When jQuery is loaded in footer this JavaScript throws the “jQuery is not defined” error.Dear plugin author, please move JavaScript to the very end of
<body>
.Possibly, you can assign
$this->knews_form_n
to a JS variable inline and enqueue the script used ingetAjaxScript()
utilizing that variable and denoting jQuery as dependency.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘No Ajax when jQuery loads in footer’ is closed to new replies.