Title: Uncaught ReferenceError: jQuery is not defined error
Last modified: August 20, 2021

---

# Uncaught ReferenceError: jQuery is not defined error

 *  Resolved [luuptek](https://wordpress.org/support/users/luuptek/)
 * (@luuptek)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/)
 * Hi,
 * Probelem with version 1.2.1
 * There seem to be problem, when wp-theme jquery is loaded in site footer.
 * It causes `Uncaught ReferenceError: jQuery is not defined`-error in site.
 * I dig the reason for that and it seems that in /includes/Assets.php on line 10`
   register_block_assets`-function is used with `init`-action. To correctly load
   styles/scripts you should be using `wp_enqueue_scripts`.
 * When I change line 10 to this, everything is ok.
    add_action(‘wp_enqueue_scripts’,[
   $self, ‘register_block_assets’]);

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Tushar Imran](https://wordpress.org/support/users/tusharimran/)
 * (@tusharimran)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/#post-14787253)
 * Hi [@luuptek](https://wordpress.org/support/users/luuptek/)
 * Thank You for reporting these bugs. it is possible to share with me which theme
   are you using now?
 * Thank You
    Tushar Imran
 *  Thread Starter [luuptek](https://wordpress.org/support/users/luuptek/)
 * (@luuptek)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/#post-14787291)
 * Hi!,
 * It’s this base theme.
    [https://github.com/luuptek/luuptek-wp-starter](https://github.com/luuptek/luuptek-wp-starter)
 * Here’s the snippet that’s used for jquery to move to footer:
    [https://github.com/luuptek/luuptek-wp-starter/blob/master/library/hooks/assets.php#L80](https://github.com/luuptek/luuptek-wp-starter/blob/master/library/hooks/assets.php#L80)
 * In this bug using `init`-hook causes, that it launches “too early” ==> causing
   the plugin files to load before wp-core files.
 *  Plugin Author [Tushar Imran](https://wordpress.org/support/users/tusharimran/)
 * (@tusharimran)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/#post-14787362)
 * Hi [@luuptek](https://wordpress.org/support/users/luuptek/),
 * Thank You for sharing the information. Now your issue is fix done and I also 
   push a new update to version 1.2.2 please update to version 1.2.2 and confirm
   me
 * Thank You
    Tushar Imran
 *  Thread Starter [luuptek](https://wordpress.org/support/users/luuptek/)
 * (@luuptek)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/#post-14787987)
 * Works now, thanks for the update!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught ReferenceError: jQuery is not defined error’ is closed to new
replies.

 * ![](https://ps.w.org/wp-map-block/assets/icon-256x256.png?rev=2371250)
 * [WP Map Block - Gutenberg Map Block for Google Map and OpenStreet Map by aBlocks](https://wordpress.org/plugins/wp-map-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-map-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-map-block/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-map-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-map-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-map-block/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [luuptek](https://wordpress.org/support/users/luuptek/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-jquery-is-not-defined-error-2/#post-14787987)
 * Status: resolved