Replies: 2 comments 2 replies
-
It looks to me like your JPT configuration is fine and it is generating the correcf output, but from here your javascript lazy loading library should take the |
Beta Was this translation helpful? Give feedback.
-
So sorry, totally my misunderstanding. I thought that in the background jpt takes care of necessary dependencies. I felt really bad :) Now it works. Here the settings; I added
Then I updated the preset as follows.
Finally, this is the result;
By the way, thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
I might have missed something but believe or not I've read most of the documentation. I am trying to explain what I did again. If I'm wrong please correct me.
It's very clear what I want to do. My goal is to create lazy-loading images suitable for many different media formats.
As I understand from the docs and the discussions on repo, If I want to create lazy-loading images, I need
data-
attributes. Because of that I have chosendata_auto
markup. If I useauto
markup, I cannot use lazy loading lib. By the way, you already explained why the data tag is needed here.This time I kept things very simple.
{% picture 2022-02-23-imperative-declarative-programming-in-java/forloops.jpeg --alt for loops example %}
I tried to override default preset like above. As you can see, I only overrided 4 things.
According to this discussion, we have to set
data_sizes
asfalse
to able to get plainsizes
attribute instead ofdata-sizes
.When I use this preset, I can't see the
srcset
in the generated html. As you mentioned in your previous comment, I wasn't expecting to see it in the site file anyway. But I was expecting to see it in the html.in the html;
As a result, I am getting this;
Could you help me?
Beta Was this translation helpful? Give feedback.
All reactions