GithubHelp home page GithubHelp logo

Use custom jQuery build? about h5bp.github.io HOT 5 CLOSED

h5bp avatar h5bp commented on August 25, 2024
Use custom jQuery build?

from h5bp.github.io.

Comments (5)

alrra avatar alrra commented on August 25, 2024

We're using just a bit of jQuery's power, and probably it is smarter to build a custom version of the jQuery library (which would only be containing the methods and functions we need). This change could save us a serious amount of kilobytes.

It depends whether the CDN version of jQuery is in the cache or not. Also, I don't think it's worth it (at least not until it's done automatically), plus, we can optimize in other ways!

If you look at the network requests you can see that the requested avatar images are quite large:

My avatar alone is 115.84 KB.

By changing the URL from:

https://avatars.githubusercontent.com/u/1223565?v=2 (115.84 KB)

to something like:

https://avatars.githubusercontent.com/u/1223565?s=30 (2.82 KB)

you get a 113.02 KB reduction just from one single image.

@arthurvr Wanna do a PR that does what is described above?

from h5bp.github.io.

arthurvr avatar arthurvr commented on August 25, 2024

@alrra I agree. I open a PR in a few houres.

from h5bp.github.io.

arthurvr avatar arthurvr commented on August 25, 2024

@alrra How are you about updating to jQuery 2.x? We could load that over a CDN.

from h5bp.github.io.

alrra avatar alrra commented on August 25, 2024

I open a PR in a few houres.

@arthurvr When you have time!

I feel like we don't need support for IE8, the visitors of this site are mostly using a modern browser
How are you about updating to jQuery 2.x? We could load that over a CDN.

@arthurvr well... yes... I guess (we don't have any usage data for h5bp.github.io)

from h5bp.github.io.

arthurvr avatar arthurvr commented on August 25, 2024

we don't have any usage data for h5bp.github.io

It's time for google analytics, then.

When you have time!

@alrra Opened: #16

from h5bp.github.io.

Related Issues (11)

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.