Skip to content

Commit

Permalink
Sets jquery as dependency when calling JavaScript main file.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrody committed Feb 21, 2024
1 parent 91aa38a commit 2e24ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
});

add_action('wp_enqueue_scripts', function () {
wp_enqueue_script('main', get_template_directory_uri().'/build/main.min.js');
wp_enqueue_script('main', get_template_directory_uri().'/build/main.min.js', ['jquery']);
wp_enqueue_style('main', get_template_directory_uri().'/build/main.min.css');
});

Expand Down

0 comments on commit 2e24ded

Please sign in to comment.