Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Nolan (nolan@toot.cafe)'s status on Tuesday, 17-Apr-2018 11:35:26 EDT Nolan Nolan

    Looks like mini-css-extract-plugin may be the Webpack async CSS behavior I've been dreaming of. It works by extracting CSS as (get this) actual CSS files! https://github.com/webpack-contrib/mini-css-extract-plugin

    That means no more CSS-in-JS, which has already shaved ~70kB off of Pinafore's total JS size. Also there aren't dozens of inline <style> tags, meaning I might be able to eventually restrict inline CSS via CSP. https://github.com/nolanlawson/pinafore/pull/145

    In conversation Tuesday, 17-Apr-2018 11:35:26 EDT from toot.cafe permalink

    Attachments

    1. Invalid filename.
      better JS size and async CSS with mini-css-extract-plugin by nolanlawson · Pull Request #145 · nolanlawson/pinafore
      from GitHub
      This uses mini-css-extract-plugin to shave about 70kB off the total combined size of all JS chunks, by (gasp!) using actual CSS files instead of embedding everything in JS. Unfortunately the older ...
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.