www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Language and library reference pages very slow to load

reply "finalpatch" <fengli gmail.com> writes:
Apparently the javascript that's responsible for creating 
hyperlinks runs very slowly, usually several seconds or longer.  
eg. http://dlang.org/phobos/core_memory.html is so slow it causes 
Mozilla Firefox to pop up the page not responding box.  I have 
also tried Internet Explorer 10 on Windows 7 and Safari on Mac OS 
X 10.8.4 and got similar results.

I wonder if it's possible to move this to the server side given 
the documents are mostly static contents.
Aug 18 2013
next sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote:
 Apparently the javascript that's responsible for creating hyperlinks
 runs very slowly, usually several seconds or longer.  eg.
 http://dlang.org/phobos/core_memory.html is so slow it causes
 Mozilla Firefox to pop up the page not responding box.  I have also
 tried Internet Explorer 10 on Windows 7 and Safari on Mac OS X
 10.8.4 and got similar results.
 
 I wonder if it's possible to move this to the server side given the
 documents are mostly static contents.
My guess is that this is caused either by hyphenate.js or hyphenate-selectively.js, both of which, thankfully, will be going away once dlang.org is updated (their removal has already been merged into git HEAD). In the meantime, one option is to disable JS on dlang.org (that's what I do, and it makes the site much more usable). T -- "Uhh, I'm still not here." -- KD, while "away" on ICQ.
Aug 18 2013
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/13 10:28 PM, H. S. Teoh wrote:
 On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote:
 Apparently the javascript that's responsible for creating hyperlinks
 runs very slowly, usually several seconds or longer.  eg.
 http://dlang.org/phobos/core_memory.html is so slow it causes
 Mozilla Firefox to pop up the page not responding box.  I have also
 tried Internet Explorer 10 on Windows 7 and Safari on Mac OS X
 10.8.4 and got similar results.

 I wonder if it's possible to move this to the server side given the
 documents are mostly static contents.
My guess is that this is caused either by hyphenate.js or hyphenate-selectively.js, both of which, thankfully, will be going away once dlang.org is updated (their removal has already been merged into git HEAD).
Wasn't JS hyphenation only removed for browsers that support hyphenation at CSS level? Andrei
Aug 19 2013
next sibling parent Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Mon, 19 Aug 2013 09:21:58 -0700
Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> wrote:

 On 8/18/13 10:28 PM, H. S. Teoh wrote:
 My guess is that this is caused either by hyphenate.js or
 hyphenate-selectively.js, both of which, thankfully, will be going
 away once dlang.org is updated (their removal has already been
 merged into git HEAD).
Wasn't JS hyphenation only removed for browsers that support hyphenation at CSS level?
I hope not. We really don't need the hyphenation. I know you like it, but I have yet to see one other person who cares about it. Plus, loading speed is far more important anyway.
Aug 19 2013
prev sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Mon, Aug 19, 2013 at 09:21:58AM -0700, Andrei Alexandrescu wrote:
 On 8/18/13 10:28 PM, H. S. Teoh wrote:
On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote:
Apparently the javascript that's responsible for creating hyperlinks
runs very slowly, usually several seconds or longer.  eg.
http://dlang.org/phobos/core_memory.html is so slow it causes
Mozilla Firefox to pop up the page not responding box.  I have also
tried Internet Explorer 10 on Windows 7 and Safari on Mac OS X
10.8.4 and got similar results.

I wonder if it's possible to move this to the server side given the
documents are mostly static contents.
My guess is that this is caused either by hyphenate.js or hyphenate-selectively.js, both of which, thankfully, will be going away once dlang.org is updated (their removal has already been merged into git HEAD).
Wasn't JS hyphenation only removed for browsers that support hyphenation at CSS level?
[...] If that's the case, then it should be completely removed. Let CSS hyphenation take care of the case where browsers actually support it. Please, *please* let's not go back to JS hyphenation. We've gotten nothing but an endless stream of complaints about it over the last couple o' months (or more). People are having trouble browsing dlang.org because it's either too slow, or their browsers pop up warnings about long-running scripts, and all for what? Some textual cosmetics? What a perfect way to turn people off D. T -- If it breaks, you get to keep both pieces. -- Software disclaimer notice
Aug 19 2013
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/19/13 10:32 AM, H. S. Teoh wrote:
 On Mon, Aug 19, 2013 at 09:21:58AM -0700, Andrei Alexandrescu wrote:
 On 8/18/13 10:28 PM, H. S. Teoh wrote:
 On Mon, Aug 19, 2013 at 06:42:04AM +0200, finalpatch wrote:
 Apparently the javascript that's responsible for creating hyperlinks
 runs very slowly, usually several seconds or longer.  eg.
 http://dlang.org/phobos/core_memory.html is so slow it causes
 Mozilla Firefox to pop up the page not responding box.  I have also
 tried Internet Explorer 10 on Windows 7 and Safari on Mac OS X
 10.8.4 and got similar results.

 I wonder if it's possible to move this to the server side given the
 documents are mostly static contents.
My guess is that this is caused either by hyphenate.js or hyphenate-selectively.js, both of which, thankfully, will be going away once dlang.org is updated (their removal has already been merged into git HEAD).
Wasn't JS hyphenation only removed for browsers that support hyphenation at CSS level?
[...] If that's the case, then it should be completely removed.
Well, looks like I missed https://github.com/D-Programming-Language/dlang.org/pull/367. Andrei
Aug 19 2013
prev sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/18/13 9:42 PM, finalpatch wrote:
 Apparently the javascript that's responsible for creating hyperlinks
 runs very slowly, usually several seconds or longer. eg.
 http://dlang.org/phobos/core_memory.html is so slow it causes Mozilla
 Firefox to pop up the page not responding box.  I have also tried
 Internet Explorer 10 on Windows 7 and Safari on Mac OS X 10.8.4 and got
 similar results.

 I wonder if it's possible to move this to the server side given the
 documents are mostly static contents.
I have a pull request on github that should fix that. Andrei
Aug 19 2013