A Progress Bar Without a Percentage
Use indeterminate progress when work is underway but its extent cannot be measured.
Topic · 33 stories · page 1 of 2
33 stories tagged javascript on AI Tamer, newest first.
Use indeterminate progress when work is underway but its extent cannot be measured.
Both can appear in the top layer, but their interaction and dismissal rules differ.
Choose a useful starting point and make the return journey work for keyboard users.
Pause optional work when a document is hidden, and resume carefully when it becomes visible.
IntersectionObserver reports geometry, not whether a person saw or read an element.
A size callback can create feedback. Make writes converge before reaching for animation frames.
A custom error stays in place until your code clears it, even after the value changes.
SubmitEvent.submitter identifies the initiating control when there is one.
Request a normal submission when validation and submit handlers matter.
Soft and hard wrapping can submit different text even when the controls look alike.
Textarea length limits use UTF-16 code units, with important validation and newline caveats.
Use browser network indicators as hints, then check the service you actually depend on.
Check HTTP status separately from network and request failures.
A fulfilled fetch promise does not mean its response body has finished arriving.
Cancel discards the remaining stream data and requests source cleanup. Releasing a lock leaves the stream for another reader.
Reading a response consumes its body stream. Clone before the body is locked or disturbed when two consumers need it.
Keep decoder state across byte chunks so a split UTF-8 character survives intact.
An omitted button type can make a local UI action submit its form. Explicit types make the intended behavior clear.
In Turkish, capital I lowercases to dotless ı, which breaks case-insensitive comparisons in Java and JavaScript unless the code uses a locale-independent fold.
With no comparator, Array.prototype.sort converts elements to strings and compares UTF-16 code units, so numbers need (a, b) => a - b, and toSorted returns a sorted copy.
Repeated query parameters survive in URLSearchParams, but get returns only the first. Choose deliberately between reading every value, adding another value, and replacing the list.
JavaScript can turn a damaged quantity into a plausible integer. Validate the complete text, then check the numeric range before accepting a count from a form or configuration file.
Droid 1.0 turns programmatic tool calling on by default: the model writes a sandboxed Script that runs many tool calls in one request.
goose's code mode now runs agent scripts on Boa with no file, shell or network access. The PR reports a smaller binary and fewer tokens in a small test.