Loading src/theme.cpp +8 −0 Changes for src/theme.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -551,6 +551,14 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml } else if (!hasLoading) { hel->setAttribute("loading", "lazy"); } } else if (hel->getTagname() == "video") { bool hasPreload = false; for (auto *attr = hel->firstAttribute(); attr; attr = attr->nextAttribute()) { if (attr->getKey() == "preload") hasPreload = true; } if (!hasPreload) { hel->setAttribute("preload", "none"); } } for (auto *child = hel->firstChild(); child; child = child->nextElement()) optimizeContentImages(child); Loading Loading
src/theme.cpp +8 −0 Changes for src/theme.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -551,6 +551,14 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml } else if (!hasLoading) { hel->setAttribute("loading", "lazy"); } } else if (hel->getTagname() == "video") { bool hasPreload = false; for (auto *attr = hel->firstAttribute(); attr; attr = attr->nextAttribute()) { if (attr->getKey() == "preload") hasPreload = true; } if (!hasPreload) { hel->setAttribute("preload", "none"); } } for (auto *child = hel->firstChild(); child; child = child->nextElement()) optimizeContentImages(child); Loading