### Bug description

Hi, 

I have a quarto presentation with `Altair` plot and `OJS`. 

For some reason, the Altair plots do not consistently show up on chromium-based browsers (I tested Microsoft Edge and Google Chrome). Weirdly, on Firefox, it works fine.  

![image](https://user-images.githubusercontent.com/5846205/192436660-9e34d8d7-b128-4c78-adcb-8d9e5798de63.png)

If I keep refreshing a bunch of times, eventually it works

![image](https://user-images.githubusercontent.com/5846205/192436687-a5c8268f-e9f0-4b7e-bbf9-e25cb5f1e03d.png)

I published the slides [here](https://lourenzutti.quarto.pub/altair--ojs----error/#/slide-with-altair-plot)

Here's the code for

````md
---
title: "Altair + OJS -- Error"
format: revealjs
---

```{python}
import pandas as pd
import altair as alt
from vega_datasets import data
```

## Slide with altair plot

```{python}
cars = data.cars()

alt.Chart(cars)\
  .mark_point()\
  .encode(
      x = 'Horsepower:Q',
      y = 'Miles_per_Gallon:Q')
```

## OJS

```{ojs}
data = [{'x': 1, 'y': 1}, {'x': 2, 'y': 2}];

Plot.plot({
  marks: [
    Plot.dot(data, {x: "x", y: "y"})
  ]});
```

````


OS: Windows 11 (21H2)
Editor: RStudio (2022.07.1+554) and vscode -- I tried both
Quarto: 1.2.157 

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2022-09-27T05:15:53Z
Lourenzutti
bug ojs-engine
v1.4
open
Altair plots disappearing with OJS cells on Chromium-based Browser
https://github.com/quarto-dev/quarto-cli/issues/2621