adding loading="lazy" to artists images at the MUNDEX page

This commit is contained in:
Hamid Reza Mohammadi 2021-11-11 14:09:49 +03:30
parent a2ce7c9934
commit e1db401f8e

View File

@ -175,7 +175,7 @@ namespace RMuseum.Services.Implementation
var imageUrl = $"{WebServiceUrl.Url}/api/rimages/{dbSinger.RImageId}.jpg";
htmlText += $"<div style=\"width:240px;margin:auto\">{Environment.NewLine}" +
$"<a href=\"{dbSinger.Url}\">{Environment.NewLine}" +
$"<img src=\"{imageUrl}\" alt=\"{dbSinger.Name}\"/>{Environment.NewLine}" +
$"<img src=\"{imageUrl}\" loading=\"lazy\" alt=\"{dbSinger.Name}\"/>{Environment.NewLine}" +
$"</a>{Environment.NewLine}" +
$"</div>{Environment.NewLine}";
}