# Depositing fails when disallowing third-party javascript #454

Closed
opened this issue Sep 24, 2017 · 4 comments

Member

### a3nm commented Sep 24, 2017 • edited

 When using uMatrix to block third-party javascript, depositing silently fails (the "processing" animation stays indefinitely), because of a dependency on cdnjs.cloudflare.com. Ideally, we could remove this dependency, or at least detect when third-party JS is blocked and display an explicit error. (Edit: not sure whether this really prevented the deposit for completing; it's very slow, so maybe I wasn't patient enough. Anyway, it would still be good to remove this dependency if appropriate.) Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Member

### wetneb commented Sep 24, 2017

 We have the following scripts: I had looked into self-hosting mathjax but I think it was quite complicated - @a3nm I think you have some experience in that? The others should be easier to migrate - they are probably just included by third-party django libraries.
Member

### Phyks commented Jan 25, 2019 • edited

 fetch and d3 could be easily self-hosted, I'll look into making a PR for this. I'll have a look at MathJax. EDIT: Self-hosting MathJax seems feasible https://docs.mathjax.org/en/latest/start.html#downloading-and-installing-mathjax.

### Phyks added a commit to Phyks/dissemin that referenced this issue Jan 25, 2019

 Self-host fetch.min.js and d3.min.js 
Partial fix for dissemin#454.
 8013c75 
referenced this issue Jan 25, 2019

### Phyks added a commit to Phyks/dissemin that referenced this issue Feb 18, 2019

 Document how to selfhost MathJax 
Fix for dissemin#454.
 4ac96b2 

### Phyks added a commit to Phyks/dissemin that referenced this issue Feb 18, 2019

 Document how to selfhost MathJax 
Fix for dissemin#454.
 32934d4 
Member

### Phyks commented Feb 18, 2019

 I added some doc in #598 about self-hosting MathJax. Once this is merged, we can apply it to dissem.in. :)
Member

### wetneb commented Feb 18, 2019

 Deployed in dissem.in.