Code Monkey home page Code Monkey logo

Comments (7)

mxstbr avatar mxstbr commented on May 17, 2024 1

As of 1.0.6 with #96, we've gotten an even smaller UMD build and a huge parsing performance jump!

The UMD build is 13% smaller (20,549 bytes gzipped down from 23,553) and parses roughly 60% quicker (~8ms in Chrome down from ~20ms, similar increase in Safari, less in Firefox)

from styled-components.

wmertens avatar wmertens commented on May 17, 2024

Would it be possible to generate everything at compile time? Using a Babel plugin that converts the tagged string call to just the calls needed to add the style?

from styled-components.

STRML avatar STRML commented on May 17, 2024

f624c4f seems to have done some good work. Bundle size is down:

Bare 1.0.0 1.0.3
Size 90kB 1.1MB 381kB

from styled-components.

mxstbr avatar mxstbr commented on May 17, 2024

Yes, we messed up some dependencies, thankfully @threepointone helped us track down the issue. Bringing the size down further and writing that babel plugin (see #59) will be the main areas of focus for the coming time!

(Also, thanks for those numbers, very helpful @STRML!)

from styled-components.

STRML avatar STRML commented on May 17, 2024

Mind keeping this open as a meta-issue for tracking the size? I think that'd be helpful to track progress.

from styled-components.

mxstbr avatar mxstbr commented on May 17, 2024

Sure, sounds like a good idea!

from styled-components.

mxstbr avatar mxstbr commented on May 17, 2024

Current status of the UMD build:

screen shot 2016-10-15 at 09 08 50

Can't see any quick wins anymore, I think this is as small as we can go right now, so I'll close this for now. 50% is PostCSS, let's see if #59 can do something about that!

from styled-components.

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.