javascript - Script Image Loading on HTTPS -
i have script tag on html page references external script url. html page , script run on https urls. however, script creates img tag references image on http url. don't have control on script (it hosted third party). problem browser complains loading http content on https page.
i tried following:
- hiding image using css display property - still causes image load , browser complain
- changing src attribute of image using javascript/jquery - doesn't solve problem because script , image load first , javascript runs
the image not necessary, can hide or remove it. also, if needed, can host image myself on https, still need change src attribute before image loads.
any suggested workarounds?
Comments
Post a Comment