Git Product home page Git Product logo

Comments (5)

0xWormh0le avatar 0xWormh0le commented on September 23, 2024

@polymorpher is blog.s.country for stse.substack.com?
I can't see share button and pool widget from stse.substack.com, can you please upload the screenshot?

from dot-country-embedder.

0xWormh0le avatar 0xWormh0le commented on September 23, 2024

I just figured out that share button would be
image

from dot-country-embedder.

0xWormh0le avatar 0xWormh0le commented on September 23, 2024

less than 0.2 second now for fast internet after fixing a few things, so it doesn't matter much

It's because the DOM is rendered before the style is fully loaded.
If the dom was from initial doc request, we can use window.onload to catch when all dependent resources are fully loaded, but in our case, the dom is updated dynamically via javascript and window.onload doesn't work for dynamically updated resources.
Not sure how to handle this. 😉

from dot-country-embedder.

polymorpher avatar polymorpher commented on September 23, 2024

@polymorpher is blog.s.country for stse.substack.com? I can't see share button and pool widget from stse.substack.com, can you please upload the screenshot?

You can find them in individual articles

from dot-country-embedder.

polymorpher avatar polymorpher commented on September 23, 2024

less than 0.2 second now for fast internet after fixing a few things, so it doesn't matter much

It's because the DOM is rendered before the style is fully loaded. If the dom was from initial doc request, we can use window.onload to catch when all dependent resources are fully loaded, but in our case, the dom is updated dynamically via javascript and window.onload doesn't work for dynamically updated resources. Not sure how to handle this. 😉

See if you can artificially trigger some events? e.g. https://stackoverflow.com/questions/9642823/force-a-window-onload-event-in-javascript

Need to find out which events are listened to - I guess you can analyze the scripts themselves or debug attached event listeners after the page is loaded. I haven't done the latter systematically before but I think it might work. The former might be easier. Or you can just trigger a few common ones (e.g. onload) and see if it works well enough already

from dot-country-embedder.

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.