Skip to main content
Version: v1.8.0

Advanced Configuration

Lawwwing Script with async

If you want to load the Lawwwing script asynchronously and deferred, you can do so by adding the async attribute to the script. This allows the script to load without blocking your website's load.

<!-- Lawwwing plugin for https://your-web.com -->
<script async src="https://cdn.lawwwing.com/widgets/current/<your-client-id>/cookie-widget.min.js" type="text/javascript" data-lwid="<your-client-id>"></script>
warning

This code is just an example; you will find yours in your control panel.

Loading the script asynchronously can be useful for optimizing your site's performance. However, keep in mind that this affects how and when the script executes, which could influence its behavior on your website.

If you are using Google Consent Mode, it is important to consider that when loading the Lawwwing script asynchronously, it will not load until the rest of your website has completed.

Therefore, if you use Google Consent Mode, you may need to specify the default consent settings. You can find more information about how to do this in the section: