About the cookie consent
Patient facing apps require a cookie consent banner.
In our first version we only have essential cookies, so the banner is informative.
In future versions we may have optional cookies (e.g. to help with analysis of usage).
This means the correct version of the cookie consent needs loading.
Try it
Add it to your app
Simply insert the following into your head tag (or at the bottom of the HTML before the closing
body
element):
<script async type="module" src="https://assets.drdoctor.co.uk/cookie/1/consent.js"></script>
<script async nomodule src="https://assets.drdoctor.co.uk/cookie/1/consent-es5.js"></script>
Note: async
means it is safe to put this script into your HTML's head
without blocking the page loading.
module/nomodule
pattern is used to serve more optimal newer JavaScript to modern browsers (the vast majority of them) and
falling back to ES5 for older browsers that don't support ES6+ or module
attribute (typically IE11)
Customise it (optional)
â›” First, consider if you need to customise it; the cookie banner should be in line with the patient portal design system
If you do, the parent element class, cookie-consent-banner
, can be used as a hook for your CSS customisation.