Submitted version 1.5.7 based on questions asked above and some concepts applied/discussed below:
- Added "Removal" of most of the javascript code if the admin option to not display attribute images is set to true. This
is expected to have a positive impact on load speed for such conditions.
- Modified the approach to the image swap, but left behind the previous code with it commented out. The reason is that
now instead of returning a newly formatted image (which requires more device communication), the original image is
"restored" if there is no attribute image assigned.
- Added some console logging of debug information if the attempt to execute the initialization code fails.
Upon review, acceptance, and posting should be downloadable from here.
Bookmarks