www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How can D Forum load so fast?

reply Anon <anonnmp gmail.com> writes:
The whole webpage https://forum.dlang.org/ has only 300KB in 
size. It not only supports mobile devices, but also loads much 
faster than general modern web pages.

How can they achieve such result?
Mar 09 2017
next sibling parent reply Stefan Koch <uplink.coder googlemail.com> writes:
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
By not using tons of java-script libraries.
Mar 10 2017
next sibling parent reply Era Scarecrow <rtcvb32 yahoo.com> writes:
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:
 On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 How can they achieve such result?
By not using tons of java-script libraries.
Not having it bogged down certainly makes a huge difference. I can't stand that websites want to be 2Mb per page to view it, and then have a bunch of JS in the background to do very little beneficial work. I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like.
Mar 10 2017
parent reply CasparKielwein <Caspar Kielwein.de> writes:
On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote:
 On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:
 On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 How can they achieve such result?
By not using tons of java-script libraries.
Not having it bogged down certainly makes a huge difference. I can't stand that websites want to be 2Mb per page to view it, and then have a bunch of JS in the background to do very little beneficial work. I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like.
The Forum is actually written in D. As far as I know the author is Vladimir Panteleev. I could only find an old post on Hackernews about it, where someone noted its performance. ( https://news.ycombinator.com/item?id=3592769 )
Mar 10 2017
parent Era Scarecrow <rtcvb32 yahoo.com> writes:
On Friday, 10 March 2017 at 09:08:16 UTC, CasparKielwein wrote:
 On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote:
  I'd rather we backtrack to more basic Apache/PHP/MySQL and 
 minimal JS without cross scripting or the like.
The Forum is actually written in D. As far as I know the author is Vladimir Panteleev.
I was actually referring in general for the majority of the web, not for the D Forums.
Mar 10 2017
prev sibling parent Chris <wendlec tcd.ie> writes:
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote:
 On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
By not using tons of java-script libraries.
I use vibe.d and very little JS (mainly my own) for new projects. If I do something with vibe.d instead of JS it's infinitely more elegant and efficient. But you cannot do without JS. Sometimes it's handy, sometimes it's easier to change things on the fly, you can include things with a simple reference to a script etc. But heavy reliance on JS is a recipe for disaster. Not only does your code become unmaintainable, you always have issues with different browsers (mobile vs. desktop etc.)
Mar 10 2017
prev sibling next sibling parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
Depends on your location, it loads in 253ms for me, which is typical for a page without graphics.
Mar 10 2017
prev sibling next sibling parent Shachar Shemesh <shachar weka.io> writes:
On 10/03/17 09:51, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in size. It
 not only supports mobile devices, but also loads much faster than
 general modern web pages.

 How can they achieve such result?
Maybe, but the NNTP interface routinely has "connection refused" problems. Shachar
Mar 10 2017
prev sibling next sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 3/9/2017 11:51 PM, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only
 supports mobile devices, but also loads much faster than general modern web
pages.

 How can they achieve such result?
It doesn't have popup ads, autorun videos, trackers, large jpegs, Web 2.0 crap, spyware, or a web design team that has to justify their $$$$$ bill.
Mar 10 2017
prev sibling next sibling parent reply Vasudev Ram <vasudevram gmail.com> writes:
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
I think (not verified scientifically) that it is due to the forum software (DFeed) being written in D and hence compiled, vs. a lot of other forum software that may be written in interpreted languages. I too have noticed its speed. Plus of course, all the points that others have said about a lot of extra stuff on other sites, like 2 MB pages, JS, video, ads, trackers, etc. I also read somewhere that DFeed is open source, so anyone who wants to study it, can do so. If I ever setup a forum, I'll try using DFeed for it.
Mar 10 2017
parent Vasudev Ram <vasudevram gmail.com> writes:
On Friday, 10 March 2017 at 13:57:06 UTC, Vasudev Ram wrote:
 On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
I think (not verified scientifically) that it is due to the forum software (DFeed) being written in D and hence compiled,
Just remembered - the "About this forum" link at the bottom of D forum pages (like this one) is where I read what I said in my previous post. https://forum.dlang.org/help#about
Mar 10 2017
prev sibling parent bachmeier <no spam.net> writes:
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote:
 The whole webpage https://forum.dlang.org/ has only 300KB in 
 size. It not only supports mobile devices, but also loads much 
 faster than general modern web pages.

 How can they achieve such result?
This is how Vladimir answered before: "No rocket science here, just general optimization common sense. Look at what CPU and web profilers (e.g. Google PageSpeed) say and optimize accordingly, rinse and repeat." http://forum.dlang.org/post/mgehxkddgybngulpmmqh forum.dlang.org
Mar 10 2017