fix: load captcha image in Chrome on initial page load
This commit is contained in:
1 parent
306c6b809f
commit
c6ab02305b
1 file changed
+5
-1
@@ -12,7 +12,11 @@
|
||||
errorClass="form-field--has-error"
|
||||
placeholder="Bitte die Zeichen aus der Grafik eingeben"
|
||||
additionalAttributes="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}"/>
|
||||
<img src="{f:uri.page(pageType:3413)}" alt="Captcha image" loading="lazy" onload="this.parentElement.classList.remove('captcha--reloading'); return false;"/>
|
||||
<f:comment>
|
||||
The "now" param keeps bw_captcha 3.x from sending a Content-Length that is the base64 size of the
|
||||
binary image (too large), which makes Chrome drop the response. Fixed upstream in bw_captcha 4.0.1.
|
||||
</f:comment>
|
||||
<img src="{f:uri.page(pageType:3413)}&now=0" alt="Captcha image" loading="lazy" onload="this.parentElement.classList.remove('captcha--reloading'); return false;"/>
|
||||
<f:if condition="{element.properties.showRefresh}">
|
||||
<button type="button"
|
||||
class="captcha__reload"
|
||||
|
||||
Reference in new issue
Block a user