This week I started a mini project to optimize a slow Drupal 8 website. The issue, various parts of the website are taking 10, 20 and even 30 seconds to load. Wow, long time.
While working on a Drupal Commerce project, I came across an interesting issue during checkout. My client’s coupon field keeps getting populated with a user’s country when they use autofill to fill out their address.
Upon working through disabling the autofill or autocomplete feature on the coupon field, the new version of Google’s browser Google Chrome ignores the autocomplete=off setting.
The solution to this problem was to update the autocomplete attribute with a string other than ‘off.’