Category Archives: Bootstrap

GDPR & AdSense: How to Create a Cookie Consent Modal that Defers Ads from Loading

Here you can find the code to accompany my video on blocking AdSense scripts from loading until the user has given consent: Here’s the HTML code for the consent modal: <div id=”consentModal” class=”modal fade” tabindex=”-1″ role=”dialog” aria-hidden=”false” data-backdrop=”static” data-keyboard=”false”> <div class=”modal-dialog”> <div class=”modal-content”> <div class=”modal-body”> <h2 class=”text-center”>Trust and transparency is important to us.</h2> <p class=”text-justify”> […]