Lofesa commented on issue #1876: Image Optimization: Does MPS optimize <source> 
images?
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1876#issuecomment-575267648
 
 
   Hi @FalkoHilbert 
   I have no tested it, but theoretically yes.
   The PR introduces a new category for srcset and data-srcset. 
   The AddUrlValuedAttribute takes a html element (source)  with an attribute 
(src) and treat it as an (image).
   If you have` <picture> <source src=xxxxx >` you can probe it w/o apply the 
PR cause src is a category stablished before the PR, only if you have srcset or 
data-srcset need the PR.
   I will say, now w/o any change to pagespeed you can try:
   `pagespeed AddUrlValuedAttribute source src image`.
   I will try to include the picture element to no need this hack if I have 
time and make a PR for that.
   Try this option and come here to comment if it works.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to