Lol, in my case it was lazy load which was causing the trouble after enabling ssl on my website