Giter VIP home page Giter VIP logo

Comments (3)

paales avatar paales commented on September 15, 2024

As discussed in #48, there are some issues with fully relying on network idle time (as far as I understand how it works).

To trigger of some other stuff in our application (setting meta tags, etc.) we're currently dispatching a custom event in the router we're using. It might be a good idea if we could incorporate a new event that notifies the bot renderer the page is 'good enough' to be send, even though not all custom elements are fully loaded in terms of data (video's not fully downloaded, non important async stuff).

this.dispatchEvent(new CustomEvent('page-loaded', { bubbles: true, composed: true } }));

Maybe this isn't the way to go an a better heuristic might be a better idea to keep the bot renderer dependency free (although it already isn't with the custom status codes).

from rendertron.

samuelli avatar samuelli commented on September 15, 2024

I like the event - I would make a slight change to Event instead of a CustomEvent.

from rendertron.

paales avatar paales commented on September 15, 2024

@samuelli Really cool!

from rendertron.

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.