You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@1dolinski Hey!
Looks like you're trying to achieve responsive layout using client-hints. You should know that currently, the client-hints solution is supported only for mobile Chrome. More information can be found here and here.
The recommended approach would be to use our JS responsive solution, which is easy to implement using our SDKs. This way the data-src will be set as you desire.
For example, cl_image_tag("sample", :width => :auto, :crop => :scale, :responsive => :true)
will create the following img tag -
Activity
eyalktCloudinary commentedon Nov 3, 2019
@1dolinski Hey!
Looks like you're trying to achieve responsive layout using client-hints. You should know that currently, the client-hints solution is supported only for mobile Chrome. More information can be found here and here.
The recommended approach would be to use our JS responsive solution, which is easy to implement using our SDKs. This way the
data-srcwill be set as you desire.For example,
cl_image_tag("sample", :width => :auto, :crop => :scale, :responsive => :true)will create the following img tag -