gost-dom / gost-dom/browser

Precompile client-side scripts for V8

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
optimization
Dominant language
Go
Stars
300
Forks
15
PR merge metrics
No merged PRs in 30d

Description

While has some functional relation to #33 - that issue is about scripts provided by Gost.

This is about scripts referenced by the application;

When encountering a `` element, precompile the script the first time it's fetched, respecting cache control headers.

Every test for the same web application is extremely likely to include the same scripts, e.g., every single HTMX app test would include HTMX.

Precompiling should provide a significant performance boost for larger test suites.

Contributor guide

Open the contributing guide

Research direction

Start at the code path that handles application-referenced elements and fetches their contents. Trace how cache-control headers are exposed, then determine where first-fetch precompilation can be reused for later tests of the same web application. Done means eligible scripts are precompiled once while cache-control behavior is respected, with coverage for repeated script fetches.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
performance, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.