Giter Site home page Giter Site logo

Comments (3)

 avatar commented on August 19, 2024

Hi,

Try throwing an event when your app shell is rendered like so :

document.dispatchEvent(new Event('app-shell-rendered'))

And put this option is the plugin like it's described in the README :

captureAfterDocumentEvent: 'app-shell-rendered'

This should stop the prerendering as you expect.

Hope it will help

from prerender-spa-plugin.

krishnasaga avatar krishnasaga commented on August 19, 2024

Hi @jnrdt Thank you for answering
What if selected components are placed random positions on the page ?
If the rendering taking place with async functions before throwing the event the unwanted components ( contains frequently updating data or user data ) will be rendered.

from prerender-spa-plugin.

 avatar commented on August 19, 2024

Hi

Only one of the random positions will be prerendered. But that can be better than no prerender at all.

If some children components can be rendered before the app shell, you simply do not have any time when the picture would be statisfying :

  • too early : the app shell will not show up
  • too late : the app shell will be there but some unwanted components to

I'm afraid you will have to adapt your code. That can be good anyway to have your app loading in a chronology you get your hands on.

from prerender-spa-plugin.

Related Issues (20)

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.