How to improve loading time? #4743
Unanswered
franpersanchez
asked this question in
Q&A
Replies: 1 comment 1 reply
-
So I found what makes Jan Meppe's blog faster than my minimal-mistakes fork...and it is really weird. <script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script> I only have one example post in my page and no latex on it, but if I add that scrip, my web page runs like a bullet. I tried this also forking Jan Meppe's site and deleting the scripts and his blog becomes slow. Any clue about this? How can MathJax library's script affect the loading time of my minimal mistakes blog when I dont even need that library? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just created a personal blog using minimal-mistakes remote theme (in github pages). I was following this blog also for some guidance
https://www.janmeppe.com/
My site has a registered domain with a cloudflare CDN pointing to github server and everything is (should) correct but I noticed a key difference in the provided blog and my site (and the official site for minimal mistakes):
when accesing an already visited post, the page takes to load as if it was not previously visited (but i can see memory cache is being used) while in jan meppe blog, the loading time is almost instant. I see this improved behavior in other blogs using jekyll (but no minimal mistakes in these cases) such as:
http://sassdoc.com/
https://kittygiraudel.com/blog/
Its a little difference but a difference after all. Any ideas or guidance in how to improve loading times?
Beta Was this translation helpful? Give feedback.
All reactions