1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Suggestion] Speed improvements

Discussion in 'Closed Suggestions' started by Mez, Sep 2, 2010.

  1. Mez

    Mez Member

    • Make CSS.php cacheable (base on version number?)
    • Specify image dimensions on logo.png (improves render time)
    • Place inline JS in header before CSS or after calls to external media (I believe in this case, it's GA)
    • Optimise CSS (On homepage, 71% of the CSS loaded is not used)
     
  2. James

    James Well-Known Member

    I think the reason that optimisations haven't been done is because it's still being developed.
    Suggestions like placing JS above the closing body element, caching CSS/JS, optimising have already been addressed.
     
  3. Mez

    Mez Member

    Doesn't surprise me, but I'm a nitpicker ;)
     
  4. Floris

    Floris Guest

    Image dimensions usually aren't set, because every forum owner actually uses different sized header images.
     
  5. Enigma

    Enigma Well-Known Member

    When the image changes, read the image and store the dimensions.
     
  6. Luke F

    Luke F Well-Known Member

    I would like to see css.php eliminated completely tbh
     
  7. Forsaken

    Forsaken Well-Known Member

    How are they suppose to include the CSS then :)?
     
  8. Mez

    Mez Member

    However, if someone has a larger file, or the user has a slow connection, on some browsers, it will not render the page until it can block out the image correctly on the page :D
     
  9. Floris

    Floris Guest

    I doubt that will happen.
     
  10. Mez

    Mez Member

    They're not including PHP. PHP runs server side, generates content, which gets included.
     
  11. Luke F

    Luke F Well-Known Member

    Cache all the CSS to static files on update (with several versions for themes etc. if necessary) and just serve those instead
     
  12. Floris

    Floris Guest

    Fair point.
     
  13. Kier

    Kier XenForo Developer Staff Member

    And you know when the image changes... how?
     
  14. Luke F

    Luke F Well-Known Member

    Also is there any reason the JS isn't placed before </body> for better rendering speed?
     
  15. Mez

    Mez Member

    index.php calls getimagesize on every page load? </snigger>
     
    Darkimmortal likes this.
  16. Mez

    Mez Member

    It's placed in the <head> section ... which is before <body>
     
  17. Kier

    Kier XenForo Developer Staff Member

    Various components have to be initialized immediately rather than waiting for $(document).ready(). TinyMCE is one of them.
     
  18. Floris

    Floris Guest

    Get the image size would only be realistic if we force the site owner to import the image into the system .. Which is what I am against to, I want all images on cdn.network.com
     
  19. Luke F

    Luke F Well-Known Member

    Oh that sucks :/
     
  20. Forsaken

    Forsaken Well-Known Member

    I had a typo ;p.

    I meant CSS, but hit before I fixed it. 
     

Share This Page