Why does the console.log output repeat twice?

Every console.log output is repeated twice in the log. This started happening only recently, maybe from last week or so. I created a simple site with nothing in it and just put the following velo code.

$w . onReady ( function () {
console . log ( ‘1’ );
console . log ( ‘2’ );
console . log ( ‘3’ );
});

And the output I get is

You can find the site at https://svwoodturners.wixsite.com/consolelog

Hey have you had a look at this article about Wix rendering process I bet It will help you understand the issue

Let me know how it goes =)

I changed the code to the following.

import wixWindow from ‘wix-window’ ;

$w . onReady ( function () {
console . log ( ‘rendering env is’ , wixWindow . rendering . env );
if ( wixWindow . rendering . env === “browser” ) {
console . log ( ‘1’ );
console . log ( ‘2’ );
console . log ( ‘3’ );
}
});

Now the console output looks like:

Loading the code for the HOME page. To debug this code, open c1dmp.js in Developer Tools. workerLogger.js:103:17
Loading the code for the HOME page. To debug this code, open c1dmp.js in Developer Tools. workerLogger.js:103:17
rendering env is browser workerLogger.js:103:17
rendering env is browser workerLogger.js:103:17
1 workerLogger.js:103:17
1 workerLogger.js:103:17
2 workerLogger.js:103:17
2 workerLogger.js:103:17
3 workerLogger.js:103:17
3 workerLogger.js:103:17

That didn’t solve the problem. In fact it shows that both times the rendering env is browser. Also if it was happening both in the browser and backend envs, I would expect the output as
1
2
3
1
2
3

instead of
1
1
2
2
3
3

Moreover the lines “Loading the code for the HOME page. To debug this code, open c1dmp.js in Developer Tools.” that is not output from my code is appearing twice.

Oh, I found out this happens only in Firefox and not in chrome or edge.

So it looks like a bug.