Jump to page: 1 2
Thread overview
How can D Forum load so fast?
Mar 10, 2017
Anon
Mar 10, 2017
Stefan Koch
Mar 10, 2017
Era Scarecrow
Mar 10, 2017
CasparKielwein
Mar 10, 2017
Era Scarecrow
Mar 10, 2017
Chris
Mar 10, 2017
Shachar Shemesh
Mar 10, 2017
Walter Bright
Mar 10, 2017
Vasudev Ram
Mar 10, 2017
Vasudev Ram
Mar 10, 2017
bachmeier
March 10, 2017
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?
March 10, 2017
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.
March 10, 2017
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.

March 10, 2017
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.
March 10, 2017
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 )
March 10, 2017
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
March 10, 2017
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.
March 10, 2017
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.
March 10, 2017
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.)
March 10, 2017
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.

« First   ‹ Prev
1 2