Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem related to Chromium CDP used by SipLoader #7

Open
Web-Distortion opened this issue Mar 11, 2022 · 3 comments
Open

A problem related to Chromium CDP used by SipLoader #7

Web-Distortion opened this issue Mar 11, 2022 · 3 comments

Comments

@Web-Distortion
Copy link
Contributor

SipLoader uses the initiator of a request defined in Chromium CDP to determine dependencies among resources (source code is here).
This is not fine-grained enough as we do not know when the requested resources are actually evaluated.

@SipLoader
Copy link
Owner

What's the exact meaning of fine-grained here? Currently SipLoader evaluates a requested resource object when the object has no precedent dependencies.

@Web-Distortion
Copy link
Contributor Author

Fine-grained here means that when a JS file A requests for another JS file B, SipLoader cannot determine when to evaluate B upon receiving it: should it

  1. pend the execution of A and directedly evaluate B, or
  2. wait until A is entirely evaluated.

@SipLoader
Copy link
Owner

Yeah, that's the case. But tracking such fine-grained dependencies requires the data flow information during web page loading, which cannot be simply collected by Chromium DevTools Protocol. We are considering to integrate a finer-grained dependency tracking mechanism into SipLoader that can indicate the exact order of object evaluation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants