Title: jQuery(window).on(&#8220;load&#8221;, function() {
Last modified: December 18, 2021

---

# jQuery(window).on(“load”, function() {

 *  Resolved [cachegaagaa](https://wordpress.org/support/users/cachegaagaa/)
 * (@cachegaagaa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquerywindow-onload-function/)
 * Hello!
 * Installed this plugin yesterday. I really like the option of color selection.
   Tested my website on PageSpeed ​​this morning and got the following Jquery error
   back:jQuery(window).on(“load”, function() { cookiesAndContentPolicyErrorMessage(”,‘
   [https://website-name.de&#8217](https://website-name.de&#8217);); });
 * The Plugin Enable jQuery Migrate Helper Plugin didn´t show the error. In addition,
   this is the new version: (window).on (“load”, function. I`m confused …
 * Where should I look now? Many thanks for your help.`

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

 *  Thread Starter [cachegaagaa](https://wordpress.org/support/users/cachegaagaa/)
 * (@cachegaagaa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquerywindow-onload-function/#post-15177040)
 * Validator.w3.org shows the following warnings:
 * `**Warning**: The type attribute is unnecessary for JavaScript resources.
    </
   script> <script type=’text/javascript’ id=’cookies-and-content-security-policy-
   js-extra’>var ca
 * <script type=’text/javascript’ id=’like_post-js-extra’>var ajax_var = {“url”:”
   https:\/\/astronja.de\/wp-admin\/admin-ajax.php”,”nonce”:”a7ace46472″};</script
   > <script type=’text/javascript’ id=’cookies-and-content-security-policy-js-extra’
   >var cacspMessages = {“cacspReviewSettingsDescription”
 * **Warning**: The type attribute is unnecessary for JavaScript resources.
    </script
   > <script type=’text/javascript’ src=’[https://website-name.de/wp-content/plugins/cookies-and-content-secur…php?rnd=d1cf74fef17bbfe9060b804d1bb16f7a&#8217](https://website-name.de/wp-content/plugins/cookies-and-content-secur…php?rnd=d1cf74fef17bbfe9060b804d1bb16f7a&#8217);
   id=’cookies-and-content-security-policy-error-message-js’></scri
 * <script type=’text/javascript’ src=’[https://website-name.de/wp-content/plugins/cookies-and-content-security-policy/js/cookies-and-content-security-policy-error-message.php?rnd=d1cf74fef17bbfe9060b804d1bb16f7a&#8217](https://website-name.de/wp-content/plugins/cookies-and-content-security-policy/js/cookies-and-content-security-policy-error-message.php?rnd=d1cf74fef17bbfe9060b804d1bb16f7a&#8217);
   id=’cookies-and-content-security-policy-error-message-js’></script> <script defer
 * After eight hour of troubleshooting:The plugin is causing the problem and not
   my theme. tzz
 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquerywindow-onload-function/#post-15177845)
 * Can you send me the url to where these errord occur? If you don’t want to post
   it here you can email me at [jonk@followmedarling.se](https://wordpress.org/support/topic/jquerywindow-onload-function/jonk@followmedarling.se?output_format=md).
   And acrivate debug in the plugin.
    -  This reply was modified 4 years, 5 months ago by [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/).
 *  Plugin Author [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * (@jonkastonka)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/jquerywindow-onload-function/#post-15178169)
 * It seems you theme is not using jQuery. You’ll need to add that.

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

The topic ‘jQuery(window).on(“load”, function() {’ is closed to new replies.

 * ![](https://ps.w.org/cookies-and-content-security-policy/assets/icon-256x256.
   png?rev=2414719)
 * [Cookies and Content Security Policy](https://wordpress.org/plugins/cookies-and-content-security-policy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookies-and-content-security-policy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookies-and-content-security-policy/)
 * [Active Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookies-and-content-security-policy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookies-and-content-security-policy/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Johan Jonk Stenström](https://wordpress.org/support/users/jonkastonka/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/jquerywindow-onload-function/#post-15178169)
 * Status: resolved