for example, I want to change the src before the img tag is rendered. If I write the js at the end of the body, the image will be sent two different requests for two different images.
I want to change this address before src sends the request. How can I do this?