Skip to content

Releases

Alpha 0.0.5

Alpha 0.0.5 Pre-release
Pre-release

Choose a tag to compare

@Breezyslasher Breezyslasher released this 05 Oct 17:48
15d5471

VitaSurf — 0.0.5

Date: October 5, 2026
Status: Alpha
PRs: #14

The largest release so far. 183 commits over two weeks, driven by hardware logs from Home Assistant, Yamtrack, GitHub, YouTube and claude.ai. Most of it was tested in a desktop harness and built for the device by CI; where a figure comes from the Vita itself, it is a user's own log.

The separate Duktape build is gone. QuickJS is now the only engine, so there is one VPK instead of two. If you were running the Duktape build, install the normal one.


Pages that update themselves no longer rebuild from scratch

Until now, a script changing anything on the page meant laying the whole document out again, which on a heavy page meant a freeze. That is replaced with something proportional to the change:

  • An attribute change restyles only what it can reach. Setting a class, a style or an image source now restyles the elements a selector could actually reach from that change, not the document.
  • A change that only affects paint is redrawn, a change that affects size lays out the existing tree again, and only a change to the structure of the page rebuilds it.
  • Hover rebuilds wait for the pointer to stop moving.
  • Images and your scroll position survive a rebuild, instead of the page jumping back to the top.

Internationalization, done properly

The full Intl family is now native, with real data for every locale ICU knows: date and time formatting with all calendars, time zone names and ranges; number formatting; plural and relative-time rules; display names; locale information; list and duration formatting; collation with every tailoring; and text segmentation. The data ships in the app and the unit only loads the first time a page asks for it.

This is the difference between a site showing you a date and a site showing you Invalid Date.


New web platform support

  • iframes get real windows that run their own scripts, including srcdoc and blank frames.
  • Web Workers — dedicated workers now run.
  • WebSocket, so pages with live updates work.
  • WebAssembly, on an interpreter.
  • crypto.subtle, with Ed25519, X25519 and proper random numbers.
  • ElementInternals for custom elements.
  • Plus DOMContentLoaded, event capture and bubbling, scroll events, getComputedStyle answered during parsing and for elements with no box, and window.location = url actually navigating — that last one is how a great many pages redirect, and it was silently doing nothing.

CSS

  • New features: counters, quotes, container queries against the real container, anchor positioning, @layer, @property, subgrid, content-visibility, multi-column layout, right-to-left and vertical text.
  • :hover, :focus, :active and :target now match. They were stubs that always answered no, which mattered here more than most places: this browser moves focus with the D-pad, so a page that shows its focused control only through :focus styling showed you nothing at all, and a link to a #fragment never highlighted where it landed.
  • Painting order — z-index is respected when drawing and when deciding what a tap hit.
  • Stylesheets built by script — insertRule, replaceSync and adoptedStyleSheets.
  • Shadow DOM — shadow styles are scoped to their host, slotted children are placed in their slots, and unslotted ones stay hidden.
  • Tailwind v4 specifics: @property initial values, the standalone translate, rotate and scale properties kept separate from transform, calc() in insets and grid, and flex gaps counted in a row's natural width.
  • ::marker, ::placeholder and the rest of the pseudo-elements browsers know.

Scrolling and drawing

  • Scrolling moves the picture on the GPU rather than redrawing it.
  • Sticky and fixed headers stay put while you pan. A pan was counting its own scroll twice, which is what made Yamtrack's header drift.
  • Images decode on two threads, at the size they are actually drawn, with the JPEG decoder built for the Vita's vector unit. Each bitmap is scaled once per size and each SVG drawn once, and decoding pauses while you are scrolling.
  • Rounded boxes get smooth corners, and icons up to 256x256 are drawn anti-aliased at their real stroke width.
  • Boxes outside the area being redrawn are skipped early, which cut one Yamtrack redraw to about a third of the work.

Loading

  • A stylesheet no longer blocks the page, only the scripts that need it, and the parser fetches ahead while it waits on a script. Transfers keep moving during scripts and style parsing instead of stalling.
  • A LAN address goes to http. Typing anything with a dot in it forced https, so a server on your own network listening on port 80 was refused in twenty-three milliseconds with an unhelpful error. Private ranges, loopback, link-local, Tailscale's range and single-label names now get http; everything else still gets https.
  • An error page is no longer offered back to you as a starting point in the address keyboard, which was producing addresses like about:query/fetcherrorreg.php.
  • The certificate bundle is parsed once rather than on every connection, and a failed handshake retries at TLS 1.2.

Speed

The slow-page work from 0.0.4 continued, and most of it turned out to be style selection on sites with very large stylesheets. The method was forced by how badly guessing did: nearly every theory was measured and found wrong before the real cause turned up.

  • :host rules were 92 per cent of all the work. A GitHub profile loads 206 stylesheets holding thousands of rules that can only ever apply inside a shadow tree, and every one was offered to every element on the page. They are now filed where nothing looks. This alone took that page from 73.9 to 60.5 seconds.
  • Rules that need an attribute are indexed by it, and rules that need an element state live in their own chain, so an ordinary element skips thousands of rules without touching them.
  • Selector tables are sized to what they hold rather than always holding 64 slots, which saved about two megabytes of heap on that page and shortened the class lookups considerably.
  • MutationObserver watches are indexed by node. Every change to the page used to walk its ancestors to the root once per watch entry, on every observer, even when nothing was watching that part of the tree. A setAttribute cost 1.13 ms on GitHub against 0.093 ms on Wikipedia for identical work, and this is why.
  • The node lookup table was 32 times too small, so handing a node to JavaScript scanned sixty entries to find it.
  • Deep clones and innerHTML build quietly. Both raise two change events per node that nothing can observe, and each of those went through the full dispatch path. One clone went from 893 ms to 68 ms.
  • Selectors, tag queries, closest() and custom-element lookups are answered in C rather than in the browser's own JavaScript.

A GitHub profile measured 50.8 seconds partway through this set, from 137.5 seconds when the work began. It is still slow — the remaining cost is simply the number of stylesheets involved.


Stability

  • Crashes fixed from five hardware reports, covering claude.ai, Home Assistant and YouTube, plus a JavaScript engine double-free when memory ran out, the focus-change crash, and the reboot when listing the ux0: root.
  • The heap is sized from what the system actually gives rather than a fixed guess.

Other

  • File browser — about:files, reached from Files in the Start menu.
  • The log covers much more: per-page timings, how long fetches waited in the queue, script profiles, where drawing time goes, and how much memory each page leaves behind. A page that keeps working after it finishes loading now reports itself again once it settles, so a site that renders itself is measured as it actually behaves.

Known limits

  • No tabs; one page at a time.
  • Nothing animates; an animated element is drawn where its animation ends.
  • Rotation and scaling in transform are not drawn, only movement.
  • Inset shadows are read but not drawn, and shadows do not follow rounded corners.
  • An <img> with rounded corners still draws square.
  • Sites with very large stylesheets (GitHub and similar) still take tens of seconds.
  • There is no JIT, so a page that does a lot of work in JavaScript is bounded by an interpreter on a 333 MHz processor. A script that runs away is still cut off by a time budget, which means a page can end up half built.

Alpha 0.0.1

Alpha 0.0.1 Pre-release
Pre-release

Choose a tag to compare

@Breezyslasher Breezyslasher released this 12 Sep 03:46
15d5471

VitaSurf — 0.0.1

Date: September 12, 2026
Status: Alpha pre-release (first release)
PRs: #1 – #5

Alpha: This is the first build of VitaSurf. Expect crashes, slow page loads and sites that do not render correctly. Logs are written to ux0:data/VitaSurf/log.txt — please attach one to any report.

CSS Grid and mask-image icons are new and untested on hardware. Both were verified only in a desktop test harness. If a page's layout looks wrong in this build, these are the first suspects.


What VitaSurf is

VitaSurf is a native web browser for the PS Vita, built on the NetSurf framebuffer frontend. It installs as a VPK, loads HTTP and HTTPS pages, runs JavaScript and remembers your cookies, history and bookmarks between sessions.

  • Boots and browses on real hardware — the app installs from the VPK, opens its bundled home page, and loads both plain HTTP and HTTPS sites.
  • Mobile user agent — sites are asked for their lighter mobile pages, which matters a lot on the Vita's memory budget.
  • Home page with test links — the bundled start page links a set of HTTP, HTTPS and JavaScript test pages.

Controls

  • D-pad moves focus between links and form fields — the focused item gets a rectangle drawn around it, off-screen targets are scrolled into view, and hidden, off-page or clipped links are skipped so focus does not appear to vanish.
  • Cross activates, Circle stops loading, L and R go back and forward, Square reloads — the standard set, all on face and shoulder buttons.
  • Left stick scrolls; Select switches to a pointer you move with the right stick — for pages where link focus is not enough.
  • Front touch panel — tap to click, drag to scroll.
  • Triangle opens the system keyboard for the address bar — anything that does not look like an address is sent to DuckDuckGo Lite as a search; otherwise a scheme is added for you.
  • Tap a text box on a page to type in it — placing the caret in a field or activating it with Cross opens the system keyboard prefilled with the field's current text, and the result is typed back into the page. Textareas open the multi-line keyboard.
  • Start opens the menu — bookmarks, add/remove bookmark, history, downloads, home, zoom, JavaScript and image toggles, and quit.

Page rendering

  • Drawn through the GPU with libvita2d — the page is copied into a texture and drawn as one quad only when something changed. This is also what makes the system keyboard able to appear at all, since Vita system dialogs composite through the GPU.
  • Real TrueType fonts — eight DejaVu faces (sans, serif, mono, bold and oblique variants) ship with the app and render through FreeType, so headings, tables and centred blocks land where the page intended instead of being laid out in one fixed bitmap font.
  • SVG images render — the framebuffer's path drawing was a stub that logged "path unimplemented" and painted icons, logos and buttons as empty boxes. Paths are now filled and stroked properly.
  • SVG curves and repeated draws fixed — relative curve and arc commands were being placed wrong, which stretched artwork like the Wikipedia wordmark and overlapped its letters; separately, every relayout appended another copy of the shapes to the same image, drawing and leaking them over and over. Both are corrected.
  • CSS custom properties — --name declarations and var(--name, fallback) references, including nested fallbacks, now work. Modern sites lose most of their colours and spacing without them.
  • CSS Grid layout — grid templates, spans, auto placement, fr units, repeat(), minmax(), gaps and alignment are implemented, and display: grid is no longer quietly downgraded to block.
  • Icons drawn with mask-image now appear — Wikipedia's mobile skin and other Codex-based sites paint their icons as a mask over a background colour; these used to be empty boxes with the hidden labels showing through.
  • Long pages scroll properly again — when a site set height: 100% and overflow-y: scroll on the body, as mobile Wikipedia does, the page got stuck at one screen's worth of content. Page overflow is now handed to the viewport as the spec requires.
  • Flex buttons no longer clip their labels — a fixed-width icon inside an inline-flex button was not counted in the button's width, cutting off the text next to it.

JavaScript

Two engines were built and measured on hardware. QuickJS is what ships by default.

  • QuickJS with hand-written DOM bindings — Duktape, NetSurf's own engine, cannot even parse the JavaScript that documentation sites, wikis and forums ship today; QuickJS runs it. Bindings cover DOM traversal and editing, attributes, innerHTML, event listeners and inline on* handlers, querySelector, classList, style, dataset, timers, location, history, URL, a small Intl, crypto, storage, observers and tree walkers.
  • XMLHttpRequest and fetch — requests run through the browser's own network layer, so they share its cookies, certificates and user agent. Redirects are followed, cross-origin responses are only delivered when the site allows them, and a page's requests are cancelled when you leave it.
  • Very large scripts are skipped — bundles over 2 MB are not run. YouTube's main bundle alone took 40 seconds to parse and nearly exhausted memory; the sites this browser is for do not ship anything that size.
  • Script memory is released when you leave a page — previously a closed page's scripts could hold 20 MB while you sat on the home page, which then starved the next site.
  • A Duktape build is still available — CI publishes it as a separate VitaSurf-duktape VPK, and the startup log line names which engine a build is using.
  • JavaScript can be turned off from the Start menu — pages load roughly twice as fast without it.

Saved data and settings

  • Cookies and history persist — both are saved under ux0:data/VitaSurf/ as you browse and on exit, including when you close the app from the LiveArea, and loaded again at startup.
  • Bookmarks — add or remove the current page from the Start menu; bookmarks and history open as normal pages you can navigate with the usual controls.
  • Zoom in, out and reset — the zoom level is saved and applied to later sessions.
  • Settings stick — the JavaScript and image toggles are written to your own settings file, which is read after the bundled defaults.
  • Downloads — anything the browser cannot display is saved to ux0:data/VitaSurf/downloads with progress in the status bar, and a Downloads menu item lists what you have.

Platform and stability

  • 176 MB heap — roughly half the app's available memory was sitting unused while heavy pages ran out.
  • Suspend and resume handled — after the Vita wakes up, in-flight page loads are stopped immediately instead of hanging until they time out.
  • Cloudflare checks are named, not silent — a page that is Cloudflare's "Just a moment..." interstitial says so in the status bar instead of looking frozen. Optionally, putting a FlareSolverr server address in ux0:data/VitaSurf/flaresolverr lets the browser hand the check to that server and retry the page.
  • Fixed a crash when closing the Start menu — the menu freed its widgets while the system still held one, and the next pointer movement jumped into freed memory.
  • Fixed a crash on large scrolled images — an offset calculation overflowed when a big image was scrolled far outside the visible area.
  • TLS now uses mbedTLS — OpenSSL was tried first and could never load the certificate bundle on hardware; it allocates a lock per certificate object and the Vita runs out of them. HTTPS works as a result.

Known limits

  • No tabs; one page at a time.
  • No <canvas> drawing — getContext returns nothing.
  • Sites built around very large JavaScript bundles (YouTube and similar) will not work properly.
  • Heavy pages take 10–20 seconds to load with JavaScript enabled.

Alpha 0.0.4

Alpha 0.0.4 Pre-release
Pre-release

Choose a tag to compare

@Breezyslasher Breezyslasher released this 20 Sep 00:27
f014edd

VitaSurf — 0.0.4

Date: September 20, 2026 Status: Beta PRs: #12 – #13

This release is all speed. No new web features. Twenty-six commits of measuring where page loads were actually going, and then removing what the measurements named. Pages that took minutes now take under a minute; pages that took seconds now take about one.

Some of this is confirmed on hardware and some is not. The font file change, the @font-face fix and the measurements themselves were checked on a device. Lazy font loading, the prelude cache and the whole-file reads were verified on a desktop build only.


What got faster

  before after
Home page 5155 ms 1039 ms
GitHub profile 137,526 ms 72,720 ms
YouTube, revisited 15,316 ms 6,713 ms
Layout on a small local page 1612 ms 32 ms

The home page was reading the memory card for every glyph

The largest single find. A 4 KB local page with no images and no script was spending 1612 ms in layout, which is not something layout does. Counters narrowed it to 243 glyph lookups costing 1848 ms — seven and a half milliseconds each, where the same lookups take seven and a half microseconds on a desktop.

It was not the processor. The font library leaves the font file open and reads outlines out of it as they are asked for: four seek-and-read pairs per glyph, and over two hundred reads the first time a face is prepared. A desktop never notices because its build maps the file into memory; the Vita's build has no such thing, so every one of about three thousand reads was a real read from storage. Font files are now read once and held in memory, which took the per-glyph cost from 7.6 ms to 0.13 ms.

Two related fixes came with it:

  • Two font faces were being loaded that do not exist. A failed file search left a stale buffer untouched, so the cursive and fantasy families each loaded a second and third copy of whatever face had been found by the call before. They fall back to the sans face now, as intended.
  • A face is loaded when a page first asks for it, not all eight at startup. Holding files in memory made loading everything up front cost half a second of startup to read 4.1 MB that a page mostly never uses. A page that sets only sans-serif text now opens one font file where it opened eight.

Files were being read a kilobyte at a time

The same root cause in another place. Reading a compiled script back off the memory card was barely twice as quick as compiling it from scratch, where it should be fifteen times quicker. The C library refills through a small internal buffer and never asks the system for more than that holds, so a 6 MB cache entry was six thousand separate reads. With a larger buffer it is twenty-four. A font file went from 740 reads to three.


Four things that were costing whole seconds

  • The browser walked its own memory once per script — a call that adds up every object in the JavaScript engine, made purely to put a number in a log line, twenty-six times on a YouTube load. Removing it took 1473 ms down to 296 ms.
  • Every image that arrived laid out the whole page again — 296 images and 143 full relayouts on a GitHub load, a sixth of the load re-answering a question whose answer had not changed. Arrivals are now gathered into one pass. Layout went from 23,006 ms to 1013 ms and images from 22,673 ms to 34 ms.
  • A font family with no web font was looked up over and over — a font-family list names a dozen ordinary faces before the web font, and each of those searched every rule of every stylesheet, every time, because only a successful lookup was remembered. On a GitHub load that was 15,267 lookups and 732,816 stylesheet walks, a third of everything the page spent outside JavaScript. Building boxes and computing styles went from 68,979 ms to 31,601 ms on hardware.
  • The browser's own JavaScript is compiled once per build, not once per boot — the home page was spending 828 ms of a 1039 ms load parsing the browser's internal script library. That now lives in the on-card compiled-script cache like anything else, so only the first run after an update pays for it.

Smaller: attribute selector names are interned once rather than per test (a 99.1 per cent hit rate, worth about two seconds of thirty-four on GitHub), and the guard that refuses an expensive layout rebuild now estimates what the rebuild will actually cost rather than counting elements, because the same element count can mean ten times the work on a page with heavy CSS.


Seeing where a load goes

The page report in the log now splits a load into parsing, CSS, images, box building, layout and script, and splits each of those again: script by how JavaScript was entered (a script tag, a timer, an event, a network callback), promise work with its longest job, box building by elements against text, layout by pass with the longest named, and style selection by how many stylesheets it searched and how many rules it considered.

Every scheduled piece of work is timed, and anything over 200 ms names itself. That is how a 23-second freeze that left nothing at all in the log was finally identified.

Two counters were also lying and have been corrected: parsing was counting the scripts it ran as parse time, and promise work was being counted nowhere at all.


What is still slow, and why

GitHub takes 72 seconds. Most of that is now one thing: choosing which CSS rules apply to each element. The page loads 398 stylesheets, and 99.6 per cent of the 16.9 million rules considered come from rules that cannot be indexed by tag, class or id, so they are offered to every element on the page. Nothing is wrong with the matching itself — there is just an enormous amount of it.

The two fixes for that are structural, named in the notes and deliberately not attempted here: one rule index for the whole document instead of one per stylesheet, and a better way of picking the next candidate rule. One rewrite of that scan was written, measured, found to be slower on the real page, and thrown away rather than shipped.

Worth saying plainly: four separate guesses at the cause of the GitHub slowness were each measured and each turned out wrong. That is why most of these commits add counters before they change anything.


Known limits

Unchanged from 0.0.3, except that the layout rebuild guard now triggers on cost rather than element count. A very heavy page will still keep the layout it was parsed with rather than freeze for a minute rebuilding it, which means it renders as its scripts left it.

  • No tabs; one page at a time.
  • Nothing animates; an animated element is drawn where its animation ends.
  • Rotation and scaling in transform are not drawn, only movement.
  • Inset shadows are read but not drawn, and shadows do not follow rounded corners.
  • An <img> with rounded corners still draws square, and canvas clipping is not drawn.
  • No Web Workers and no CompressionStream.
  • Logical properties assume left-to-right text.
  • @keyframes inside @media is not found.

Alpha 0.0.3

Alpha 0.0.3 Pre-release
Pre-release

Choose a tag to compare

@Breezyslasher Breezyslasher released this 19 Sep 03:01
b53327c

VitaSurf — 0.0.3

Date: September 19, 2026
Status: Alpha pre-release
PRs: #9 – #11

Alpha: Expect crashes, slow loads and sites that render wrong. Logs are written to ux0:data/VitaSurf/log.txt, and the Start menu now has a Log screen that shows the last page load without needing the card pulled.

A lot of this release was verified in a desktop test harness rather than on a Vita. The frame rate, icon fonts, log timings and the script recovery are confirmed on hardware. The image size cap, the disk cache, the charset fix and most of the CSS work are not yet.


Self-hosted dashboards and app pages

This release was driven by what real pages did on the device: Home Assistant, Audiobookshelf, openmediavault, Immich, Yamtrack, YouTube, GitHub and Wikipedia. Three separate faults were each throwing away part of a page without saying anything.

  • Documents stopped after 4096 bytes — the character-set decoder kept characters in an internal buffer that nothing ever collected, so everything past the first output buffer was decoded and silently dropped. Audiobookshelf lost the last forty bytes of its page, which cut the src off the script that mounts the app, and the browser sat on a loading spinner for good. The test harness never caught it because the harness was built differently from the Vita; it now builds the same way.
  • Scripts a page inserted could not change the document — every node such a script appended was refused, with nothing reported. openmediavault's language button is that case: the menu overlay is appended by script, the append was refused, and the globe did nothing. It now opens with all 26 languages. The same fault was dropping that site's sidebar contents and dashboard graphs.
  • A script at the very end of a document was never run — the parser closed it out without telling anyone, so it sat in the page with its address, never fetched. Those are now picked up once the parse completes.
  • A preload could end the parse early — a <link rel="preload"> counted as a fetch the page was waiting on, so it could finish the parse underneath a parser that had not read to the end.
  • Login forms built by script work — a control created by a script belonged to no form, so a submit button reported that the form could not be submitted. A click also submitted without telling the page, so a form that posts the credentials itself from a submit listener was never asked.
  • Pages that route themselves work — history was six empty functions, so a single-page app would sign you in and then show you the login page again, because the address never moved. It now keeps a stack, returns the state it was given, and fires popstate.
  • A page is told its real address while it is still loading — Home Assistant reads its own address that early to work out where it is served from, decided it had come from a local file, and sent its login nowhere.

Canvas

<canvas> went from a stub that accepted every call and drew nothing to something pages can chart with. Dashboard gauges and charting libraries draw for real.

  • Shapes, fills and strokes — paths, arcs and curves, both winding rules, stroke widths, transforms, and anti-aliased edges.
  • Gradients — linear, radial and conic, with sorted colour stops, mixed per pixel and carried through the current transform.
  • Images — drawImage from a loaded image or another canvas, with source and destination rectangles, alpha and smoothing.
  • Text — fillText, strokeText and measureText, drawn through the browser's own fonts.
  • Pixel access — getImageData and putImageData, capped at a megapixel so a page cannot ask for more memory than the Vita has.

Icons and fonts

  • Icon fonts draw icons — an icon font works by turning the icon's name, written as ordinary text, into a single glyph. The font engine did not do that lookup, so it drew the word: Audiobookshelf's sidebar read HOM, IMP, VIE and GRO in icon-sized letters, three times too wide. Ligature substitution is now read out of the font and applied.
  • WOFF2 fonts load at all — the font library was built without the decompressor WOFF2 needs, so it refused every one. That is the format Google Fonts serves and the one every icon set ships, so the whole category was unavailable.
  • Web fonts through @font-face — including the unicode-range descriptor, so a family served as one file per script installs the one that actually holds the text on the page.
  • Inline icons take the colour the page asked for — sites style icons with fill: currentColor so they match the text beside them. Neither fill nor stroke existed in the CSS engine, so every such icon fell back to black: present, correct, the right size, and invisible on a dark header.

CSS

The engine now understands most of what stylesheets written this decade actually contain. Which properties to add was decided by counting declarations across eleven real sites rather than by guessing.

  • calc() everywhere, plus min(), max() and clamp() — calc() previously only worked on width; on every other property the declaration was dropped entirely, so a margin written that way laid out as no margin. An unparsed min() takes its whole declaration with it, so pages written with them laid out at the wrong size rather than merely looking wrong.
  • Custom properties have a real cascade — variables were gathered from the page root only, so a variable a component set for its own subtree was never seen, and components themed that way came out wrong. Variables now resolve per element, including :host and rules written inside other rules.
  • Modern colours — oklch(), oklab(), lab(), lch(), color-mix(), hwb() and light-dark(). Tailwind 4 ships its entire palette as oklch() and writes every translucent overlay as color-mix(), so on a site built with it every colour declaration was being thrown away.
  • CSS nesting — a nested rule was discarded, and often took the declaration after it too. Hover states, focus rings and generated content never appeared on sites that use it, which is most new ones.
  • :has() and the form pseudo-classes, @supports, @container, media query range syntax, and at-rules nested inside @media.
  • Painting — gradients, box-shadow (the reason every card, button and menu looked flat), filter and opacity, filter: blur(), outlines, ::first-letter and ::first-line, text-overflow: ellipsis, -webkit-line-clamp and clip-path: inset().
  • transform — the most-written property the browser did not understand, and what those declarations mostly say is "move this": a dialog centred with a translate, a card lifted on hover. The translation is applied when painting and hit testing. Rotation and scaling about the default origin leave a box where it already was, so they are read and skipped rather than approximated.
  • Animations rest where they finish — the usual way to fade something in is to start it invisible and animate it to visible, so a browser that ignores the animation leaves it invisible for ever. Nothing is animated here, but an element now draws in the state its animation comes to rest in.
  • Layout — grid, flex gap, justify-content, flex order, flex automatic minimum size, position: sticky and fixed pinned to the viewport, aspect-ratio, and the rest of the logical properties (borders, inline-size, block-size and the older grid-gap spellings — about 900 more declarations that were being lost).
  • Picture sizing — background-size, object-fit and aspect-ratio, none of which existed. A background was drawn at the image's own size however large the box, a photograph in a card was stretched to whatever shape the card was, and a box built to hold a picture collapsed to nothing.
  • pointer-events — the only missing property that changed what a tap does rather than how something looks. Sites mark an icon inside a button so the button gets the tap, and mark an overlay so what is underneath still works.
  • Stylesheets a script adds now apply — a <link> or <style> appended after the page converted was ignored outright, which is how some sites deliver their dark theme.
  • prefers-color-scheme, hidden, -webkit- and -ms- aliases, and the tail of a survey of what real pages send.

Speed and memory

  • A steady 60 on screen — the system frame counter read 3 to 5 sitting still because the screen was only ever put up when something had been drawn. It now goes up every refresh. The picture does not change any more often, but it is paced by the screen and the counter means what a person reading it thinks it means.
  • The log was costing a frame per line — a write to the memory card costs about nine milliseconds, and the log was unbuffered and flushed every line. Buffered instead, startup to the browser's own main went from 1412 ms to 345 ms and the home page load from 5200 ms to 2960 ms.
  • No image is decoded larger than the screen — nothing can be shown at more detail than 960x544 holds, and a page of full-size covers is how this machine runs out of memory. On a page of eight 2400x1600 photographs the image cache peaked at 123 MB before and 14 MB after. Pages are still laid out at the image's own size, so nothing about the layout changes.
  • Fetched pages are cached on the memory card — nothing survived a restart, so every visit fetched everything again; Audiobookshelf pulls 2.3 MB of script per load. Capped at 128 MB, with a Cache row in the Start menu to turn it off so a cold load can still be timed.
  • Frames are no longer spent waiting on the GPU, and the screen copy uses the Vita's vector instructions.
  • Runaway promise chains can be stopped — the script time budget was disarmed for every promise job, and a page does most of its work in ...
Read more

Alpha 0.0.2

Alpha 0.0.2 Pre-release
Pre-release

Choose a tag to compare

@Breezyslasher Breezyslasher released this 16 Sep 02:43
3194b8d

VitaSurf — 0.0.2

Date: September 16, 2026
Status: Alpha pre-release
PRs: #6 – #8

Alpha: Still expect crashes, slow loads and sites that render wrong. Logs are written to ux0:data/VitaSurf/log.txt — please attach one to any report.

Much of the CSS and DOM work here was verified against a desktop test harness rather than on a Vita. Where a change is confirmed on hardware, it is because a device log showed it; where it is not, it may behave differently on the real thing.


Script-driven sites now work

The big one. Until now, anything a page's JavaScript did to the document after loading never reached the screen, because the page was laid out once and never again. That is fixed, and with it a large class of modern sites went from blank or half-drawn to usable.

  • Pages are laid out again after scripts change them — this is what makes sites that build their own interface on load render at all. Rebuilds are batched while the page is still loading, run only for the page you are actually looking at, and are skipped entirely on very large documents, where the freeze would cost more than the improvement.
  • Custom elements — component-based sites (Polymer, Lit, Stencil and anything built on them) ship their whole interface as custom elements. The registry, upgrades and the lifecycle callbacks are implemented, so those pages now build themselves instead of rendering whatever the server happened to send.
  • ES modules — modules run, resolve imports through the page's import map, and are fetched when a page only preloads them rather than loading them as a script. A module whose import has not arrived yet is retried rather than abandoned, which is how a bundler's split chunks finish loading.
  • Named sites that load now: claude.ai boots and renders, YouTube's mobile site renders, GitHub renders styled, and mobile Wikipedia runs its own skin scripts to completion.
  • A page that sends the browser into a loop is stopped — the script time budget could previously be defeated by anything that touched the DOM or dispatched an event, so a runaway script carried on indefinitely. One YouTube load ran four minutes past a twenty second budget. The budget now holds, and tightens after each script it has to stop.

Rendering

  • Inline SVG draws — an <svg> written directly into a page was previously invisible. Site logos and icon sets drawn that way (YouTube's logo and its navigation icons, among others) simply were not there. <use> references into a hidden icon sheet resolve too.
  • Rounded corners — border-radius was missing from the CSS engine entirely, so every rounded box on every site drew square. It was by a wide margin the most-used property the engine did not have.
  • Logical spacing properties — padding-inline-start and its nineteen relatives were discarded, losing around 1600 declarations of real spacing across the stylesheets measured. This is a large part of why pages sat flush against the edge of the screen.
  • Long words break instead of running off the page — word-break, overflow-wrap and word-wrap are now honoured.
  • Graphics keep their shape — an SVG drawn into a box of a different proportion used to be stretched or crushed; a wide wordmark in a narrow box arrived as a smear. Both axes now scale together and centre.
  • SVG shapes are drawn in the right colours — uninitialised data was reaching the SVG handler, so icons came out as black blobs, and a different wrong colour on each run.
  • Modern stylesheets are read — rules and custom properties inside @layer and @supports used to be skipped along with the whole block, which left sites built on them almost unstyled. :is() and :where() are supported, including argument lists and descendants, which stops the rules using them being thrown away.
  • Site colour themes resolve — sites that define their palette in blocks scoped to attributes on the root element (a dark theme, a light theme, high contrast) had none of their colours resolve, giving text with no colour on a page with no background. The engine now works out which block applies.
  • WebP images decode — sixteen of twenty-one images on one measured page were WebP, and the build had that decoder switched off, so the page arrived with no pictures at all.
  • Hidden markup stays hidden — the hidden attribute had no effect, so collapsed menus, error templates and closed dialogs were drawn on top of the page.
  • Inline-flex and inline-grid boxes take up their line — a column of links laid out with inline-flex was drawn on a single line with everything painted over it.
  • getComputedStyle reports real colours — it previously answered black on transparent for every element whatever the page had set, so a site that reads its own colours back to theme itself got the same wrong answer every time.

Dark mode

  • A dark mode toggle in the Start menu — it sets prefers-color-scheme for both stylesheets and matchMedia, so a site's script and its stylesheets cannot disagree about which theme to draw. It applies to pages opened after the toggle.
  • Media features asked without a value are answered — queries like (prefers-color-scheme) and (hover) always answered no. Some sites use exactly that form as a gate before asking which theme you want, which is why dark mode appeared to do nothing on them at first.
  • The home page now shows which colour scheme the browser is asking for, so the setting can be checked without trusting a site to follow it. Many sites, YouTube included, pick their own theme regardless.

Speed

  • YouTube went from about 106 seconds to about 20 — most of that was the user agent. The old string matched none of the site's rules, so it served the full desktop application: 10.8 MB of script against the 1.8 MB the Vita's own browser is given. The browser now identifies as the hardware does. Six sites were measured before the change; four serve byte-identical pages to every string tried.
  • Compiled scripts are kept between runs — a cache under ux0:data/VitaSurf/jscache stores compiled bytecode, so a page you revisit skips compiling it again. On a 2.5 MB bundle that is 306 ms to compile against 32 ms to read back. Bounded at 48 entries and 96 MB, oldest use dropped first.
  • Text measurement is cached — laying out measures every string and every trial line break, and each one previously walked the text character by character through the font machinery. Sixteen times faster in the harness, with byte-identical widths. This did not move the layout figure on the device, which is recorded rather than glossed over.
  • Selector queries are much faster — querySelectorAll walked the whole document in JavaScript, costing around 300 ms per class lookup on a Wikipedia article. That is now 23 ms.
  • Script limits raised from guesses to measurements — the old 2 MB script cap was rejecting bundles that would have compiled in a few seconds, and a rejected bundle leaves a blank page. The cap is now 16 MB, with the engine memory limit and stack raised to match and the timeout at 20 seconds.
  • Module retries back off — a round of retries that resolves nothing now waits longer before the next, instead of recompiling the same 400 KB chunks eight times over.

Web platform

  • IndexedDB — fully implemented rather than declared present: key ordering and ranges, key paths, auto-increment, indexes, cursors, transactions that roll back, version upgrades, and structured clone so a Date comes back a Date.
  • Site storage survives — localStorage was a single object shared by every site and thrown away with the page. It is now one file per origin and persists between sessions.
  • Streams — ReadableStream, WritableStream, TransformStream, the text encode and decode streams, backpressure, tee, pipeTo and async iteration. Previously Response.body and Blob.stream() returned nothing while claiming to exist, which is worse than being absent: a page would test for them, be told yes, and then fail.
  • The performance timeline — marks, measures and PerformanceObserver were empty functions returning empty arrays, which breaks any page that reads its own measurements back.
  • The full console — only five console methods existed. A page whose very first statement was console.assert(...) died there and mounted nothing.
  • The console describes what it is given — errors, exceptions and objects are printed the way a browser prints them instead of [object Object].
  • Unhandled errors and promise rejections are reported — a framework drawing its own "something went wrong" box used to leave nothing at all in the log.

Crashes and hangs fixed

  • The browser was running on a 256 KB stack, not the 4 MB it asked for — a link-time optimisation had discarded the setting, and the recursion guard was set larger than the whole stack, so a stack overflow arrived as a crash rather than a catchable error. Opening YouTube hit this every time.
  • A corrupted stylesheet selector brought the browser down on claude.ai.
  • Layout could hang forever on a character the font has no glyph for, with no way out.
  • A freed script context was still reachable between one page closing and the next opening.
  • Element methods on non-element nodes read past the end of an internal table and jumped into freed memory; MediaWiki does exactly that.
  • A broken IndexedDB database could never recover — a failed first upgrade left a database that every later visit found, skipped, and failed on. claude.ai had six of them. Cards already carrying one are repaired.
  • The log no longer floods — one YouTube load wrote the same warning 18,537 times over eighteen minutes, each line flushed to the memory card.

Known limits

  • No tabs; one page at a time.
  • No `<c...
Read more