From: Mark Hobley on
In comp.infosystems.www.authoring.tools David Schwartz <davids(a)webmaster.com> wrote:
> Unfortunately, all the page author need to is design the page so that
> it cannot be rendered without the advertisements and there is nothing
> you can do. Not all pages are designed this way, but this one is. The
> browser has no idea whether or not the script is critical.

Well, it is possible to disable Javascript altogether, and the page loads just
fine then.

Supposing a Javascript cannot be found (eg an HTTP404 error), should the
browser wait for infinity then too, or should it skip trying?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

From: David Schwartz on
On Apr 11, 10:57 pm, markhob...(a)hotpop.donottypethisbit.com (Mark
Hobley) wrote:

> Well, it is possible to disable Javascript altogether, and the page loads just
> fine then.

Right, but that's a human's decision which the browser has to honor.

> Supposing a Javascript cannot be found (eg an HTTP404 error), should the
> browser wait for infinity then too, or should it skip trying?

It should probably refuse to render the page. That's a pretty tough
call -- is it better to provide nothing at all or to possible provide
something completely inappropriate?

DS
From: Jerry Peters on
In comp.os.linux.networking Mark Hobley <markhobley(a)hotpop.donottypethisbit.com> wrote:
> In comp.infosystems.www.authoring.tools David Schwartz <davids(a)webmaster.com> wrote:
>> The page cannot possibly be rendered.
>
> Can't it render with the included information missing? Like for example, it
> does if an image fails to load?
>
> What do you reckon the browser should do in this case?
>
>> Why load a page it cannot render?
>
> I don't need the advertisements from the blocked sites, but I would like to
> see the remaining content.
>
> Mark.

I suppress google analytics via /etc/hosts and have a (very) dumb
webserver that responds to a get with "Sorry, this is all you're
getting here :-)".
When I go to that page, that's all I see, both with js on or off.

Jerry
From: Dr J R Stockton on
In comp.infosystems.www.authoring.tools message
<48b3e918-44b2-4e97-9c4b-f15abb2eee62(a)u22g2000yqf.googlegroups.com>,
Mon, 12 Apr 2010 01:00:36, David Schwartz <davids(a)webmaster.com> posted:
>On Apr 11, 10:57�pm, markhob...(a)hotpop.donottypethisbit.com (Mark
>Hobley) wrote:
>
>> Well, it is possible to disable Javascript altogether, and the page
>>loads just
>> fine then.
>
>Right, but that's a human's decision which the browser has to honor.
>
>> Supposing a Javascript cannot be found (eg an HTTP404 error), should the
>> browser wait for infinity then too, or should it skip trying?
>
>It should probably refuse to render the page. That's a pretty tough
>call -- is it better to provide nothing at all or to possible provide
>something completely inappropriate?

The author should include in each script the creation of a variable
specific to that script. A page calling for that script can test for
the existence of that variable and branch accordingly; it can use an
alternative script or page, emit an abusive or apologetic remark, etc.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE8 FF3 Op10 Sf4 Cr4
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.