Code Monkey home page Code Monkey logo

Comments (7)

alanorth avatar alanorth commented on July 27, 2024

I haven't read much about AMP yet, only some negative things about how you lose a bit of control of your content. See this recent blog post and its discussion on Hacker News:

from hugo-theme-bootstrap4-blog.

fte378 avatar fte378 commented on July 27, 2024

Interesting read. So one could make the site AMP ready and make the head-element which turns on the AMP machinery at the big providers optional.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 27, 2024

Frankly I'm not very concerned with AMP right now. This theme is very small and behaves very well by the web standards. My only concern is that Google is giving sites that use AMP a boost in their search results.

The vast majority of page size comes from content anyways. Like your blog homepage loads 1.9MB, mostly in images — that's a heavy price to pay for mobile users who casually arrive on your homepage. You could limit your homepage to only show ~3 or so posts and then you would see much more improvement in user experience than with AMP (which would surely caution against loading large images as well).

I am a bit annoyed that we have to include the whole of Font Awesome just so we can use ~5 icons (folder, tag, and social icons), so I might look at customizing that in the build process, though.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 27, 2024

Ok, on this note, I've reduced the size of the Font Awesome stuff by ~30KiB. If the server hosting the blog supports gzip — as your and my blogs do — the CSS will be compressed and these savings are only about 7KiB. In any case, this is a win for less data transferred over the wire and less memory used on the device when the stylesheet is unzipped. 👍

See: 4d79004

from hugo-theme-bootstrap4-blog.

fte378 avatar fte378 commented on July 27, 2024

Cool! Thanks.

from hugo-theme-bootstrap4-blog.

alanorth avatar alanorth commented on July 27, 2024

Eek! More bad things with AMP:

https://shkspr.mobi/blog/2016/11/removing-your-site-from-amp/

Really horrible. Not a fan!

from hugo-theme-bootstrap4-blog.

fte378 avatar fte378 commented on July 27, 2024

Yes, looks bad.

from hugo-theme-bootstrap4-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.