how to Blocked Resource with jquery

108
October 20, 2019, at 4:00 PM

i am use this code for replaceing old domain src with new src

Array.from(document.querySelectorAll('img')).forEach(x => {
  x.src = x.src.replace(/ap.domain.com/,'new.domain.org')
  console.log(x);
});

and

Array.from(document.querySelectorAll('div')).forEach(x => {
  x.style.backgroundImage = x.style.backgroundImage.replace(/ap.domain.com/,'new.domain.org')
  console.log(x);
});

show more in this page

And my question : how to Blocked old Resource (ap.domain.com) When the browser starts to open the page, old resolutions are also loaded. Is there a way to stop it using JavaScript or jQuery?

READ ALSO
How can i access the current object in a v-for loop in the same tag

How can i access the current object in a v-for loop in the same tag

Im trying to use the same v-for iteration object in the same tag, i need to get the length of the object

51
How to launch application in Admin mode using javascript? Any solution soon will be helpful

How to launch application in Admin mode using javascript? Any solution soon will be helpful

Hi I am trying to launch an application which needs admin rights from javascriptCan you guide me how to do this

91
How to fetch opengraph of a link using Javascript?

How to fetch opengraph of a link using Javascript?

I want to fetch the Metadata property of a link that will return an array:

107
Problem extending native (es6) classes in Safari

Problem extending native (es6) classes in Safari

I'm having trouble extending the native WebSocket class using es6 classes

99