• Resolved wpprup

    (@wppraesenz)


    Hello Frank,
    sorry, I have a special question. When activating JS optimizing the “cookie law bar info” is not correctly displayed, hides in the footer, button not displayed etc.
    Now I wnat to exclude it with “cookielawinfo.js” in the exclusion window but this does not help. Only deactivating js optimization let the bar untouched.
    Have you got an idea what to do? The website really needs optimization… ??
    Thanks for your fine work again!
    Ulf

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    You’ll probably have to exclude js/jquery/jquery.js (and not aggregate inline JS or exclude cookiebar’s JS specfically; cli_show_cookiebar) as well Ulf. If that does not work look at the browser console for JS errors (feel free to paste them here) for pointers.

    hope this helps,
    frank

    Thread Starter wpprup

    (@wppraesenz)

    Thank you for your quick reply!
    First I do not aggregated js. Then I excluded cli_show_cookiebar. This did not lead to a change.
    Then should I exclude the js/jquery/jquery.js in general? (You see, I am not quite a code expert … ?? )

    After and before this I get these two errors:
    1. Uncaught ReferenceError: jQuery is not defined at (index):70
    at (index):70

    [Large code excerpt removed by moderator per forum guidelines. Please use Pastebin or a Gist for all large code excerpts, they work better anyway.]

    Thanks again!

    • This reply was modified 6 years, 10 months ago by James Huff.
    • This reply was modified 6 years, 10 months ago by James Huff. Reason: large code excerpt removed
    Thread Starter wpprup

    (@wppraesenz)

    Oh, I see only now, this is the WHOLE PAGE! Sorry!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    if you get

    jQuery is not defined

    then somehow jquery is either not excluded, or it is not excluded correctly. you’ll indeed have to add js/jquery/jquery.js to the comma-separated JS optimization exclusion field ??

    Thread Starter wpprup

    (@wppraesenz)

    I really dared ?? to put this expression exactly like this
    ,js/jquery/jquery.js,
    into the field and now it works, miracle to me!
    The Google PS but did not increase, but there is some other work necessary, I am afraid ??
    Thank you!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Well, excluding any JS from optimization will impact your GPSI score I’m afraid. But at least your cookie bar now works! ??

    Thread Starter wpprup

    (@wppraesenz)

    Yes, thanks! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cookie bar excluding does not work’ is closed to new replies.