-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
P3Low: Not priority right nowLow: Not priority right noweffort/daysEstimated to take multiple days, but less than a weekEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulhelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featuretopic/gatewayTopic gatewayTopic gateway
Milestone
Description
Update 11/4(@schomatis): We need to refactor the gateway code to use UnixfsAPI.Ls() instead of Get.
Instead of resolving file types up-front in the gateway, we can take advantage of streaming HTML rendering (most browsers support this) by:
- Returning an HTML body with the directory listing as fast as possible.
- Streaming back some trailing style elements to "update" the directory listing with file types.
That way the directory listing appears immediately, and icons for file-types will be filled in as new <style> elements get sent back to the browser.
Alternatively, we could do this with some javascript. But I'd like to avoid that if possible.
Metadata
Metadata
Assignees
Labels
P3Low: Not priority right nowLow: Not priority right noweffort/daysEstimated to take multiple days, but less than a weekEstimated to take multiple days, but less than a weekexp/intermediatePrior experience is likely helpfulPrior experience is likely helpfulhelp wantedSeeking public contribution on this issueSeeking public contribution on this issuekind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featuretopic/gatewayTopic gatewayTopic gateway