GithubHelp home page GithubHelp logo

Use HTTP/2 and SPDY about lite-server HOT 6 OPEN

goldibex avatar goldibex commented on August 20, 2024 1
Use HTTP/2 and SPDY

from lite-server.

Comments (6)

Meligy avatar Meligy commented on August 20, 2024 3

Another +1 for this, especially as a development server.

When you load Angular2 via SystemJS, you have quite a large number of requests depending on your import tree.

This is not the production experience, but it kinda slows down the development experience (sample).

HTTP/2 might be a good solution for this development-only problem.

from lite-server.

goldibex avatar goldibex commented on August 20, 2024 1

Thanks all. Well, let me lay out my arguments for you here first -- if
they're totally unconvincing it may not be worth the effort.

  1. lite-server is part of the "future, now" Javascript ecosystem. It's
    advertised for use developing with JSPM and Angular 2, for instance. HTTP/2
    is the future of communication on the Web, so it makes sense to get people
    developing on that now.
  2. I have some very, very preliminary data showing that in development
    cases where hundreds of objects need to be loaded from the server (common
    enough with JSPM and even modestly sized projects these days), HTTP/2 can
    cut down time to first load for developers considerably.
  3. It's a little-ish issue, but I think it's also important to get
    developers saying the mantra "SSL only," starting from their development
    instances. I've already developed a tool that de-complicates the process so
    you don't have to worry about bright red SSL warnings more than, say, once
    a month. It's true that you could do the same thing against HTTP/1.1 also,
    but packaging it with a move to HTTP/2 makes it easier for developers to
    swallow -- honey on the rim of the medicine cup, as it were.

If this is at least a colorable argument to you, let me know and I'll take
a pass at it.

All best
Harry

On Wed, Feb 3, 2016 at 5:53 AM John Papa [email protected] wrote:

I agree with Chris, but curiosity has got me ... I'd like to see what you
have in mind just to satisfy that :)


Reply to this email directly or view it on GitHub
#15 (comment)
.

from lite-server.

cgmartin avatar cgmartin commented on August 20, 2024

As a simple development server I don't feel like this has much value. Is there a particular use-case for development that you have that requires HTTP/2?

Running lite-server in production is absolutely not recommended. :)

Another quirk is that this project is a simple wrapper around BrowserSync's server feature. If it can't do HTTP/2, then I assume we'd have large difficulty trying to work that in via lite-server. But if Browsersync ever does include that feature, it could be easily enabled through lite-server's overrides.

from lite-server.

johnpapa avatar johnpapa commented on August 20, 2024

I agree with Chris, but curiosity has got me ... I'd like to see what you have in mind just to satisfy that :)

from lite-server.

jakeNiemiec avatar jakeNiemiec commented on August 20, 2024

+1

from lite-server.

j-perezr avatar j-perezr commented on August 20, 2024

+1

from lite-server.

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.