Skip to content

clients: support async page fetching #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

miki-totefu
Copy link
Collaborator

An async fetch replaces a section of the page with content without full
page reload. Example syntax:

--form--
type="action" value="/remote/resource"
type="submit" label="Submit Invoice"
type="asynctarget" value="section_one"
--/form--

--section id=section_one --
--/section--

When the form is submitted, brclient/bruig fetches the contents of
/remote/resource, then replaces everything inside #section_one with it.

Sections and forms should not be nested (that is unsupported).

miki added 2 commits April 16, 2025 13:56
An async fetch replaces a section of the page with content without full
page reload. Example syntax:

--form--
type="action" value="/remote/resource"
type="submit" label="Submit Invoice"
type="asynctarget" value="section_one"
--/form--

--section id=section_one --
--/section--

When the form is submitted, brclient/bruig fetches the contents of
/remote/resource, then replaces everything inside #section_one with it.

Sections and forms should not be nested (that is unsupported).
A bundled resource compiles several resources together into a single
reply to a resource. When the remote client attempts to fetch one of the
bundled resources, then that resource is fetched locally instead of
performing a remote request.

This is skipped if the request has data (i.e. it's a POST). The bundles
are only checked on a per-session fashion (new sessions cause a new
bundle download).
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