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:
- 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.
I apologize if this is actually an issue with the underlying
trumpetmodule 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 forheadand one forbody), 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:
npm installdependenciesnode index.js https://www.intellimize.comhttps://localhost:8000Any help would be greatly appreciated.