Skip to content

Commit 8b99bf3

Browse files
committed
Start reviewing and moving rahkapetteris PR to air-cookie, left on commit b570a9c, T-18028
1 parent 3bcd8a1 commit 8b99bf3

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

air-cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function get_database_version() {
4747
* @since 0.1.0
4848
*/
4949
function get_script_version() {
50-
return '2.9.1';
50+
return '3.0.0';
5151
} // end get_script_version
5252

5353
/**

assets/cookieconsent.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/cookieconsent.js

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script-injection.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ function inject_js() {
3737
}
3838

3939
// Cookie Consent javascript base.
40-
wp_enqueue_script( 'cookieconsent', plugin_base_url() . '/assets/cookieconsent.js', [], get_script_version(), false );
40+
wp_enqueue_script( 'cookieconsent', plugin_base_url() . '/assets/cookieconsent.js', [], get_script_version(),
41+
array(
42+
'in_footer' => true,
43+
'strategy' => 'defer',
44+
)
45+
);
4146

4247
// Get cookie categories
4348
$cookie_categories = get_cookie_categories();

0 commit comments

Comments
 (0)