lity
lity copied to clipboard
imageRegexp optimization
I'm using lity for dynamic images like this:
example.com/files?path=products/abc.jpg
to prevent caching at some pages, I'm using:
example.com/files?path=products/abc.jpg&rand=239923
I noticed, that my images are not interpreted as images then. Please add "&" to the imageRegExp, to handle this cases:
var _imageRegexp = /(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)([\?|&]\S*)?$)/i;