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

Compress HTML Source 1.0.2

compress, html, source, code

  1. Eagle

    Eagle Well-Known Member

    Eagle submitted a new resource:

    Compress HTML Source - compress, html, source, code

    Read more about this resource...
     
    otto and SoeHoe like this.
  2. Rob

    Rob Well-Known Member

    I'll be watching this thread. I take page Load speed very seriously and already have a GTMetrix A rating, but not 100%
     
    Eagle likes this.
  3. SoeHoe

    SoeHoe Active Member

    me too, very interested for this add on. Thanks @Eagle :)
     
    Eagle likes this.
  4. Eagle

    Eagle Well-Known Member

    @Rob thanks but what score does your site get on Google PageSpeed insights? Or did you try it? If you try that, you'll see Google PageSpeed test results: Compress HTML: Done tick.png and will perfectly for SEO and will compatible with Google Adsense Policies. However Rob, I still can't understand XenForo JS files are bad on Google PageSpeed test results, why?

    Note that using compression does not hurt forums page ranking. Matt Cutts talks about this in his article on Crawl caching proxy

    As everyone probably know, there is not only Compress HTML source for SEO and page load speed. Your page load time can also be greatly improved by resizing your images. Resizing the images, logo, banner etc. before putting them on your pages can reduce the load time by 50% or more...

    However, after install this add-on and enabled options, site page load speed will affect Google rankings and take high speed.

    @SoeHoe thank you.
     
  5. Rob

    Rob Well-Known Member

    I use the pagespeed apache module that handles a lot of that.
     
  6. otto

    otto Well-Known Member

    .. but causes errors by me on my forum with many add-ons. ;)

    I will try this Add-on and take a look at the result. :)
     
  7. Eagle

    Eagle Well-Known Member

    @otto Are you sure? I have tried and test it many times but I have never had a problem yet but some of these add-on might conflict with other add-ons you uses. That might be the problem. However, I don't think so. At least I'm also using many add-ons in a large forums and there is no problem.
     
  8. BobbyWibowo

    BobbyWibowo Well-Known Member

    Will this have any noticeable effects on CPU usage or something? I'm currently on my way to improve various stuff to speed up my forums as well.

    I checked the module's page. Does this module requires anything else other than the fact that the server is running with Apache?
     
    Last edited: Jul 23, 2015
  9. Eagle

    Eagle Well-Known Member

    @BobbyWibowo I think this will give a better the CPU usage in your forums. As a matter of fact, after install add-on the CPU utilization goes from 2% to 1% of course it's just an example. All of my queries are very optimized but out of compressing HTML, with other optimizing work can lower CPU utilization. Database, add-ons, Cache scripts, Image optimizations, etc. An another example; Gradient Images shall be high CPU usage in any browser in my opinion.
     
  10. BobbyWibowo

    BobbyWibowo Well-Known Member

    @Eagle I actually meant the web server's CPU, lol. Considering it'll compress the HTML on-the-fly. Although if the queries are as optimized as you claimed, I guess I don't really have anything to worry about.
     
  11. Eagle

    Eagle Well-Known Member

    I didn't say you said that for browsers.

    Indeed, as I said that for server CPU usage about in my message.

    And I said that for browsers and it's just an example. :)

    Whatever, Compressing HTML... This really is an awesome idea! :coffee:
     
  12. BobbyWibowo

    BobbyWibowo Well-Known Member

    @Eagle ah, got confused by the last phrase. Either way, just installed the add-on before you replied. It works better than CloudFlare's HTML compression since it also hits inline scripts (which is kinda bloated on UI.X based styles). After going through a couple of pages, it appears to be indeed smooth. Thanks! :p
     
    Eagle likes this.
  13. BobbyWibowo

    BobbyWibowo Well-Known Member

    Ah geez, UI.X's user bar won't show up with the compression enabled. I guess I gotta inspect something on my local host T_T
     
  14. Eagle

    Eagle Well-Known Member

    @BobbyWibowo That's awesome. Thank you. Did you try other methods? There are three options available.
     
  15. BobbyWibowo

    BobbyWibowo Well-Known Member

    Ah, sadly, this appears to be extremely incompatible with UI.X-based styles. I suppose due to the tons of inline scripts on the style.

    With 2nd option enabled, I got 4 JS errors from UI.X inline scripts. Seems like some variables were obstructed and ended up in failure to call them. The effects were pretty noticeable, I suppose because the variables were quite important at that.

    With 3rd option enabled (I've disabled 2nd option beforehand), there was no error, but the HTML structure ended up in a mess. Although it only happened on thread_view as far as my inspection goes.

    So yeah, I guess somethings aren't properly structured so it ended up in a mess on UI.X-based style. For now I switched back CloudFlare's HTML compression and decided to 'minify' the inline script by myself later (though I'll just remove the indenting on the scripts).


    On that note, can we get a 4th option? Possibly an option that will ONLY remove indenting on inline scripts? Meaning only the tabs or spaces on them. For some scenarios (like mine), it's better to combine that with CloudFlare's HTML compression, because apparently nothing breaks with their compression (but they doesn't hit inline scripts, so my page size is still pretty big with UI.X inline scripts).
     
    Last edited: Jul 24, 2015
  16. otto

    otto Well-Known Member

    I mean the pagespeed mod for Apache. ;)

    But - I have now tested your add-on. When I aktivate only the middle option, I cant view any pictures in the forum threads and also not in the xen media gallery. Seems to be jquery will work not more proberly. I can reproduce this - can you confirm this (Xenforo 1.4.8 and the latest XMG for)
     
  17. BobbyWibowo

    BobbyWibowo Well-Known Member

    @otto Erm, mine telling me more about PageSpeed module? Does it need anything else other than the fact that the web server is using Apache? I'm interested to have that installed.
     
  18. otto

    otto Well-Known Member

    As I say - mod pagespeed dont work for me without errors! I dont use it now any more.

    Because - its pretty simpel to install, google have a nice install guide for. :)
     
  19. BobbyWibowo

    BobbyWibowo Well-Known Member

    @otto Ah, alright then. Thanks either way! I suppose I'll try to ask my hoster to give that a try.
     
  20. batpool52!

    batpool52! Well-Known Member

    -snip-
    Nvm it breaks the site.
     
    Last edited: Jul 24, 2015

Share This Page