Comments (5)
@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.
I just figured out that share button would be
from dot-country-embedder.
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 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.
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)
- Invalid import assertion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dot-country-embedder.