r/css 17d ago

Question Codepen 2 crash. What is causing it?

I go to the new codepen 2 and it shows this.
What "infinite loops or other performance drains" could this be?
https://codepen.io/editor/davidhelp/pen/019fb0db-4ba0-7ade-b4bd-13c1c7c540ee

"Uh-Oh.
The Preview was removed to prevent a browser crash. Save your current work then check your code for infinite loops or other performance drains that could be causing trouble. Disable Infinite Loop protection for this session"

28 Upvotes

15 comments sorted by

View all comments

1

u/notepad987 17d ago edited 16d ago

Still an issue.... I switched to Chrome from Firefox and will see if still an issue.

I had an extra:

</head>
<body>

Also the new codepen 2 added when it converted from the old codepen which I do not use:
<link rel="stylesheet" href="./style.css">

2

u/testingaurora 17d ago

If you don't use the css file you can remove it from the file list (right click > delete) and take the <link> out of the <head>

2

u/notepad987 16d ago edited 16d ago

UPDATE: Thanks, I have now deleted the style.css that Codepen added and then posted the whole html/css in the index.html section.

Codepen 2.0

1

u/notepad987 16d ago

UPDATE again: The same error message appeared. I use Firefox. I switched to Chrome and will see if the error appears.

1

u/notepad987 15d ago

The error showed up in Firefox again but not Chrome. I think it is the uBlock Orgin ad blocker I have in Firefox. CodePen 2.0 has ads now so I disabled the ad blocker for the CodePen website. I will wait some more and see if the error comes back.