Skip to content

Move Explorer perf panel to plain <script> (OJS cell wasn't firing)#125

Merged
rdhyee merged 2 commits intoisamplesorg:mainfrom
rdhyee:fix/explorer-perf-panel-script
Apr 17, 2026
Merged

Move Explorer perf panel to plain <script> (OJS cell wasn't firing)#125
rdhyee merged 2 commits intoisamplesorg:mainfrom
rdhyee:fix/explorer-perf-panel-script

Conversation

@rdhyee
Copy link
Copy Markdown
Contributor

@rdhyee rdhyee commented Apr 17, 2026

Follow-up to #124: the OJS perfPanel cell wasn't evaluating on page load. Replaced with a plain <script> in include-in-header that polls for marks. Still gated on ?perf=1.

rdhyee and others added 2 commits April 17, 2026 09:36
Without output: false and with an html return value, the cell is
treated as displayed and therefore evaluated. The original version
was being skipped by OJS's dead-code elimination because no other
cell referenced perfPanel and output was suppressed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
OJS reactive graph was inconsistently evaluating the perfPanel cell
(appeared in docs/isamples_explorer.html as ojs-cell-34 but never
fired on page load, even 50s after all explorer_* marks landed and
sampleData was observed). Progressive_globe's structurally identical
cell works fine — suspect page-specific timing or dependency ordering.

Replace with a plain <script> block in include-in-header that runs
independent of OJS. Polls for performance marks every 500ms and
re-renders the panel as each new mark arrives, stops polling once
explorer-samples-end and explorer-count-end are both present.

Gated on ?perf=1 (no-op otherwise).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rdhyee rdhyee merged commit cc5e571 into isamplesorg:main Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant