GithubHelp home page GithubHelp logo

Comments (5)

JMPerez avatar JMPerez commented on July 17, 2024

The base idea of Bigpipe is that the pagelets are injected asynchronously, so none of them block each other. Actually, the way JS scripts are included makes the browser request them asynchronously.

You can try adding a delay in the generation of one of the pagelets, and see that the server still returns (and the browser renders) the other one first.

from bigpipe.

Saviio avatar Saviio commented on July 17, 2024

Actually I have tried it before,I set the pagelet 1 return the result immediately,and set the pagelet2 with a long-time delay ,but browser was waitting for data until pagelet2 return the result

from bigpipe.

Saviio avatar Saviio commented on July 17, 2024

Like you mentioned fragment of javascript,I know BigPipe will send the data into browser with padding like "JSONP" method.I think that is what we need——“Chunked” and “Asynchronization”.

But,Javascript can only operate the data what has be sent (or flushed by server).I will test it more,I hope we can share more information,Let me thank you in advance.

from bigpipe.

Saviio avatar Saviio commented on July 17, 2024

image

As you can see,I set two pagelet with a different interval.And browser show the message like this below.
image

from bigpipe.

Saviio avatar Saviio commented on July 17, 2024

OK,After many searching,I found the point:gzip compression.

I turn off the gzip in web.config,now It's worked.

Anyway,thank you for your post again.

from bigpipe.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.