Giter Site home page Giter Site logo

Google Page Speed performance about skel HOT 10 CLOSED

ajlkn avatar ajlkn commented on August 29, 2024
Google Page Speed performance

from skel.

Comments (10)

ajlkn avatar ajlkn commented on August 29, 2024

It has less to do with skelJS and more to do with the fact that html5up.net is very image heavy.

from skel.

sarfraz-qasim avatar sarfraz-qasim commented on August 29, 2024

Your page has 4 blocking script resources and 8 blocking CSS resources. This causes a delay in rendering your page.

None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Remove render-blocking JavaScript:
    http://html5up.net/assets/js/jquery.min.js
    http://html5up.net/assets/js/config.js
    http://html5up.net/assets/js/skel.min.js
    http://platform.twitter.com/widgets.js
Optimize CSS Delivery of the following:
    http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,700,900
    http://html5up.net/assets/css/style.css
    http://html5up.net/assets/css/style-narrow.css
    http://html5up.net/assets/css/style.css
    http://html5up.net/assets/css/style-narrow.css
    http://html5up.net/assets/css/style-narrow-n1.css
    http://html5up.net/assets/css/style-narrow-n2.css
    http://html5up.net/assets/css/style-narrow-n3.css

from skel.

ajlkn avatar ajlkn commented on August 29, 2024

I don't see why you couldn't move it out of the . I'll experiment with it in the next version.

from skel.

sarfraz-qasim avatar sarfraz-qasim commented on August 29, 2024

Is there anyway from which we can add dynamically generated <style> blocks to footer of the page instead of header?

from skel.

ajlkn avatar ajlkn commented on August 29, 2024

Not as of yet, but I'll see if it's feasible to add as a feature.

On 10/28/2013 1:25 PM, sarfraz-qasim wrote:

Is there anyway from which we can add dynamically generated <style> blocks to footer of the page instead of header?


Reply to this email directly or view it on GitHub:
#16 (comment)

from skel.

sarfraz-qasim avatar sarfraz-qasim commented on August 29, 2024

I have achieved what I want by comment out the line (mentoned below) on skel.js file and replaced it with new line. Created span on html document somewhere in the footer with the "css-block" id. Not sure it is correct way to do that.

//_.registerLocation('head', document.getElementsByTagName('head')[0]);
_.registerLocation('head', document.getElementById('css-block'));

Now working on to create only one style block instead of multiple style blocks.

from skel.

tomByrer avatar tomByrer commented on August 29, 2024

I think the JS generates the layout? If so, there is a good chunk of the page-lag. IMHO much of the layout should be in the CSS & @media rules.

html5up.net is very image heavy

Somewhat, but I've seen worse. You could squeeze out another ~6% of image filesize with some super-compressors. Also, I suspect that deviantArt runs on a CDN, so some of that is mitigated. You can "lazy-load" the images below the fold, minimize the files, etc to get a bit more speed also.

from skel.

ajlkn avatar ajlkn commented on August 29, 2024

Media queries: skelJS replaces these (by design; see the docs).

html5up.net: Doesn't host anything at dA.

Lazy loading: Considered this. Didn't implement it because the images wouldn't be seen by Google Images.

from skel.

tomByrer avatar tomByrer commented on August 29, 2024

Media queries: skelJS replaces these (by design; see the docs).

Exactly why skelJS is not as fast as it could be. CSS runs at browser-speed, fast as you can get since it is likely in C++. When you start writing CSS via JavaScript, you have to wait for all the JS & dependencies to be loaded, then it has to be re-written as bytecode, then ran, creating pointers & allocate memory to hold variables, manipulating strings, inserting into HTML/CSS, etc... all that can never be as fast as CSS by itself.

from skel.

tomByrer avatar tomByrer commented on August 29, 2024

Lazy loading: images wouldn't be seen by Google Images.

True, that is why there is often an HTML sent to search engines, & a different HTML sent to other clients. Needs back-end .config editing & some extra work, but you can have the best of both worlds if you wish. Depends on how much time you have for optimization.

from skel.

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.