hugo-theme-relearn/exampleSite/content/basics/releasenotes/5/5.en.md

23 lines
1.2 KiB
Markdown
Raw Normal View History

2024-09-18 18:36:42 +00:00
+++
disableToc = false
hidden = true
title = "Version 5.5"
type = "releasenotes"
weight = -5
+++
2024-09-18 18:47:07 +00:00
## 5.5.0 (2022-11-06) {#5-5-0}
2024-09-18 18:36:42 +00:00
### Change
- {{% badge style="note" title=" " %}}Change{{% /badge %}} The way images are processed has changed. Now images are lazy loaded by default which speeds up page load on slow networks and/or big pages and also the print preview.
For that the JavaScript code to handle the [lightbox and image effects](cont/markdown#image-effects) on the client side was removed in favour for static generation of those effects on the server.
If you have used HTML directly in your Markdown files, this now has the downside that it doesn't respect the effect query parameter anymore. In this case you have to migrate all your HTML `img` URLs manually to the respective HTML attributes.
| Old | New |
|--------------------------------------------------------|-----------------------------------------------------------------|
| `<img src="pic.png?width=20vw&classes=shadow,border">` | `<img src="pic.png" style="width:20vw;" class="shadow border">` |