Comments (11)
Pretty sure this is a prefetching thing -- as soon as you mark something as preload
the browser can decide when and how often to load a resource (and some browsers are very bad at showing what's actually happening). I wouldn't worry too much about this.
from juliamono.
(Maybe this is normal - I don't know much about font loading on the web)
from juliamono.
Hello again!
I wonder if this is caused by the two src url
s in the CSS - I wasn't sure which one was going to work on the Friday of JuliaCon (various issues with the CORS headers on different browsers) so in case Netlify couldn't deliver the fonts, perhaps Github could... Perhaps I could remove the Netlify sources and rely on github...
I had hoped that the font would download and display quickly, but if it's waiting for two downloads to complete I've shot myself in the foot... :)
from juliamono.
I don't think that it's because of the two src
: this is a compatibility thing - IE only sees the first src
, modern browsers only see the last (conforming to the CSS spec). And the first src
point to github.com/...
, but both requests go to juliamono.netlify.app
.
from juliamono.
I load just from Netlify now (loading from Github didn't work today for some reason...)
from juliamono.
Oh I forgot to post it yesterday, but I did the same in Chrome and it only loaded fonts once, so I was going to post that I probably just misread the firefox dev console.
But today I did it again, and it only loads the Regular
variant (once), not the other weights. I guess you changed something?
And on firefox, it now loads the font 10 times? I checked the headers, and it's 10 separate requests:
from juliamono.
Aye, I changed it this morning - but I couldn't get any downloads from github.com at all, so just deleted those and relied on the netlify paths. I'm going to research it some more... (It occurred to me that free Netlify sites like this have download caps so perhaps there's that as well to worry about! :))
from juliamono.
I load just from Netlify now (loading from Github didn't work today for some reason...)
This could be an HTTP headers problem with GitHub. I would recommend using a CDN that delivers from GitHub releases:
https://cdn.jsdelivr.net/gh/cormullion/[email protected]/webfonts/JuliaMono-Regular.woff2
They look at the file extension (.woff2
) and make sure that the correct headers are set (just like netlify does). It should also faster across the globe. It also works in China, and their uptime should be better than github.
(I don't know the details about any of this, I just read it on their website 😇)
from juliamono.
That's cool - did you have to register or anything or is it a URL anyone can use?
from juliamono.
Nope they forward all of github! Once someone requests a file for the first time, they cache it internally.
They can also do JS (and CSS?) minification by changing the filename from .js
to .min.js
.
from juliamono.
Thanks!
from juliamono.
Related Issues (20)
- Pipe HOT 5
- ≺ (`\prec`) hard to distinguish from less-than HOT 8
- small case "r" looks wierd HOT 3
- Does not respect unicode RIGHT-TO-LEFT OVERRIDE, for some glyphs HOT 8
- Unpaired parentheses in CHANGELOG.md HOT 5
- Remove v0.5.1 tag HOT 3
- Add support for `\dot (U+0307)` for numbers HOT 4
- "SS20" (splashtidy) does not work in general cases HOT 5
- Daggers too similar? HOT 3
- Combining characters with lower case j doesn't always render the combining character for some glyphs. HOT 8
- Request for 450 font weight HOT 2
- Emoji Presentation for Julia Logo HOT 9
- wedge/bigwedge and vee/bigvee too similar? HOT 2
- Mystery spacing issues HOT 7
- Interrobang glyph is incorrect HOT 7
- Possible alternate variant of small letter "l" with stylistic set? HOT 18
- Problem with CJK glyphs HOT 5
- Take down the "JuliaMono julia manual" since it pollutes google search? HOT 3
- Unintentional missing glyphs in v0.055? HOT 6
- Ligatures are gone in WezTerm after upgrading to JuliaMono 0.055 HOT 5
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 juliamono.