From d3dfec6f52d8093db276adb62021ced8f58e590c Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 5 Nov 2023 12:17:03 +0100 Subject: Added lazy loading to images --- _posts/2020-03-22-simple-sse-based-pubsub-server.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '_posts/2020-03-22-simple-sse-based-pubsub-server.md') diff --git a/_posts/2020-03-22-simple-sse-based-pubsub-server.md b/_posts/2020-03-22-simple-sse-based-pubsub-server.md index 23a3640..ffb7285 100644 --- a/_posts/2020-03-22-simple-sse-based-pubsub-server.md +++ b/_posts/2020-03-22-simple-sse-based-pubsub-server.md @@ -39,7 +39,7 @@ simple. We have subscribers that receive messages, and we have publishers that create and post messages. Similar model is also well know pattern that works on a premise of consumers and producers, and they take similar roles. -![How PubSub works](/assets/posts/simple-pubsub-server/pubsub-overview.png) +![How PubSub works](/assets/posts/simple-pubsub-server/pubsub-overview.png){:loading="lazy"} **These are some naive characteristics we want to achieve:** @@ -75,7 +75,7 @@ page](https://html.spec.whatwg.org/multipage/server-sent-events.html). ### Current browser support -![Browser support](/assets/posts/simple-pubsub-server/caniuse.png) +![Browser support](/assets/posts/simple-pubsub-server/caniuse.png){:loading="lazy"} Check [https://caniuse.com/#feat=eventsource](https://caniuse.com/#feat=eventsource) @@ -143,7 +143,7 @@ which is quite nice and available from Developer Tools under Network tab. > ones. For debugging server events add `console.log` to `server.js` code and > print out events. -![Google Chrome Developer Tools EventStream](/assets/posts/simple-pubsub-server/chrome-debugging.png) +![Google Chrome Developer Tools EventStream](/assets/posts/simple-pubsub-server/chrome-debugging.png){:loading="lazy"} ## Server implementation -- cgit v1.2.3