The cookie modal only broadcasts the 'cookies:saved' event when settings are saved, not on subsequent page loads. This small addition (in src/cookie-modal.js) publishes another event 'cookies:loaded' that you can subscribe to if you want to execute stuff only when the proper consent is given.
The cookie modal only broadcasts the 'cookies:saved' event when settings are saved, not on subsequent page loads. This small addition (in
src/cookie-modal.js
) publishes another event 'cookies:loaded' that you can subscribe to if you want to execute stuff only when the proper consent is given.