emacsorphanage / org-page

[INACTIVE] A static site generator based on Emacs and org mode.
673 stars 99 forks source link

Don't insert googlecode url in template mdo #112

Closed tumashu closed 9 years ago

tumashu commented 9 years ago
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://google-code-prettify.googlecode.com/svn/loader/prettify.js"></script>

I find above two line in mdo template, which make site page very slow in china.... you understand....

sillykelvin commented 9 years ago

Yeah, it's because the fucking GFW, however, if we make local copies of the script files, we will have to update them manually...

Do you have any better idea?

tumashu commented 9 years ago

what about use a fork in github

tumashu commented 9 years ago

fork prettify,js to github?

sillykelvin commented 9 years ago

It's OK, but seems still need manual effort to update...

tumashu commented 9 years ago

Yes, but it seemed easier and cleaner than putting prettify.js to org-page source.

Maybe we can contact the prettify.js's author, and "huyou" he to github, for googlecode will die.

sillykelvin commented 9 years ago

Ha, I found a great CDN which hosts prettify.js: http://cdnjs.com/libraries/prettify I tried, it loads pretty fast, could you please help test ?

I will change the CDN if it is good for you, then it would be good for all people in the fucking China.

tumashu commented 9 years ago

Fast too, but my college's Lan is fast.....

At moment, I custom my own theme template and don't use any js. for example:

http://tumashu.github.com
sillykelvin commented 9 years ago

OK, I will change to that CDN.

You site is designed very well. :-)