Possible fix for alt text flickering before image load in Firefox
This commit is contained in:
parent
5a37bf3beb
commit
7d1ae04849
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "2.3.1"
|
||||
ReleaseVersion string = "2.3.2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -55,7 +55,7 @@ func (t Format) Body(rootUrl, fileUri, filePath, fileName, prefix, mime string)
|
|||
return "", err
|
||||
}
|
||||
|
||||
return fmt.Sprintf(`<a href="%s"><img src="%s" width="%d" height="%d" type="%s" alt="Roulette selected: %s"></a>`,
|
||||
return fmt.Sprintf(`<a href="%s"><img style="color: transparent;" onload="this.style.color='inherit'" onerror="this.style.color='inherit'" src="%s" width="%d" height="%d" type="%s" alt="Roulette selected: %s"></a>`,
|
||||
rootUrl,
|
||||
fileUri,
|
||||
dimensions.width,
|
||||
|
|
Loading…
Reference in New Issue