IntersectionObserver to create a lazy load Images with data-srcset and imagekit.io

I think your lazy loading may be creating these issues. If you check where your image requests originate you can see it’s from the loadImage function in universal.js that directly sets the src attribute of the image. Maybe you could try the native browser lazy loading and skip the intersection observer shenanigans: https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading

What would cause the Entity Framework to save an unloaded (but lazy loadable) reference over existing data?

If I understand right you have something like this: public class Company { public Company() { MainContact = new Contact(); } public int Id { get; set; } public virtual Contact MainContact { get; set; } } A simple code like this… var company = context.Companies.Find(1); context.SaveChanges(); …will indeed create a new empty contact in … Read more

org.hibernate.LazyInitializationException at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectManyValuesForModel

While submitting, the JSF UISelectMany components need to create a brand new instance of the collection with the submitted and converted values prefilled. It won’t clear out and reuse the existing collection in the model as that may either get reflected in other references to the same collection, or may fail with an UnsupportedOperationException because … Read more

Django lazy QuerySet and pagination

If you want to see where are occurring, import django.db.connection and inspect queries >>> from django.db import connection >>> from django.core.paginator import Paginator >>> queryset = Entry.objects.all() Lets create the paginator, and see if any queries occur: >>> paginator = Paginator(queryset, 10) >>> print connection.queries [] None yet. >>> page = paginator.page(4) >>> page <Page … Read more

Configure Jackson to omit lazy-loading attributes in Spring Boot

With recent versions of Spring Boot this is much easier. Any beans of type com.fasterxml.jackson.databind.Module will be automatically registered with the auto-configured Jackson2ObjectMapperBuilder and applied to any ObjectMapper instances that it creates. This provides a global mechanism for contributing custom modules when you add new features to your application. 74.3 Customize the Jackson ObjectMapper First … Read more