Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Block previews causing crashes #86

Closed
Tracked by #518 ...
brian-smith-tcril opened this issue Oct 5, 2022 · 2 comments
Closed
Tracked by #518 ...

Block previews causing crashes #86

brian-smith-tcril opened this issue Oct 5, 2022 · 2 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@brian-smith-tcril
Copy link
Contributor

I have been able to reproduce this issue somewhat consistently by:

  1. Creating a library with 20+ blocks (it seems any type works)
  2. Enabling previews
  3. Scrolling up/down while the previews are loading

Sometimes refreshing the page with previews enabled will lead to the crash. Sometimes things seem to work without crashing. In the browser console I encounter a wall of errors:
image

One idea I had to address this without diving into why loading 20+ copies of the same javascript in iframes causes crashes is to not load 20+ copies of the same javascript every time. One way this could be accomplished by switching from a global "show previews" toggle to a per-block "show preview" toggle.

@jristau1984
Copy link
Contributor

This issue has been brought into the 2U Library Authoring epic with this internal ticket: https://2u-internal.atlassian.net/browse/TNL-10591

@rayzhou-bit
Copy link
Contributor

I could not get this issue to reproduce on hosted devstack or stage.

@github-project-automation github-project-automation bot moved this from Backlog to Closed in Frontend Working Group Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

4 participants