Skip to content

No selector callbacks being invoked for certain sites #54

Description

@justinhelmer

I apologize if this is actually an issue with the underlying trumpet module but this seems like the right place to start.

For some sites, everything works perfectly. For others, no selector matching works. Digging into the code, I can see that the selectors are being registered with tr.selectAll (one for head and one for body), but the callbacks are being invoked.

The only obvious difference between the two sites is that one is gzipped and one is not.

To reproduce:

  • Clone the simple-harmon-example repo I set up to demonstrate the issue
  • npm install dependencies
  • Test a working site by doing the following:
    • Run node index.js https://www.intellimize.com
    • Load https://localhost:8000
    • See the following console output, indicating that the selectors are matched and callbacks invoked:
in head
in body
  • Next test a site that does not work - you will not see any console output:
node index.js https://www.blackriflecoffee.com

Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions