I want to check if media and files are fully loaded with readystate in vue.
Below is mounted at testparent/index.vue. I was just testing every form of onreadystatechange, bc none of them works.
mounted() {
document.onreadystatechange = () => {
if…
when readyState is completed, some code would be executed but it doesn't work upon chrome browser till clearing the cache then it runs for only one time. If I refresh, That code wouldn't be executed again until clearing the cache again and it runs…
This is the current source code:
var xhttp = new XMLHttpRequest();
function passVars(var1, var2, var3) {
if (var1.readyState == 4) {
if (var1.status == 200) {
var data = var1.responseText;
if (data) {
playSuccess();
…