LoginSignup
2
0

More than 5 years have passed since last update.

How to Build Paper-Fast Static Website

Last updated at Posted at 2018-06-23
1 / 15

About Me

Name: Yota Toyama
GitHub: raviqqe
Religion: Vim


Background


Paper-Fast (紙速)?

  • Web pages served like a sheet of paper.
  • Every content shown at once
  • No flashing
+--------+
|        |
|   紙   |
|        |
+--------+

Near Paper-Fast Example

経済、株価、ビジネス、政治のニュース 日経電子版.png


A lot of challenges...

  • Hard for dynamic websites
  • Heavy use of CDN
    • Fastly and VCL
  • How about static ones?

What I built


https://cloe-lang.org

Cloe programming language.png


JavaScript optimization

  • Run JavaScript locally
    • Less JS codes on browsers
    • Read, modify, and write HTML files
    • jsdom with common tools like jQuery
  • Consider embedding scripts into HTML

Fonts optimization

  • Hosted fonts
    • Google Fonts
      • Easy to use
      • Your fonts can be already in disk cache
      • text query option
  • Serving from your domain

Images optimization


Others


Demo


Summary

  • Optimize everything
    • Don't run codes
    • Don't use resources
  • KPI improvement? More user views?
    • IDK but self satisfaction

References

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0