Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33047
| From | Jon Ribbens <jon+usenet@unequivocal.eu> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Which type of network access for this situation? |
| Date | 2017-04-18 16:08 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnofcemk.2ms.jon+usenet@sable.unequivocal.eu> (permalink) |
| References | <7e444aec-2938-4da7-9162-54b71bbe7be7@googlegroups.com> <od3kp9$mr9$1@news.albasani.net> <1611458.0Y0JHutS3l@PointedEars.de> <od3p79$9i6$1@news.albasani.net> <bf172184-d9f1-43a7-a3df-b15a8f46ac1e@googlegroups.com> |
On 18th April in the Year of Our Lord 2017, the illustrious
bit-naughty@hotmail.com whose email address is alleged to be
<bit-naughty@hotmail.com> did communicate, write, or otherwise
convey the following missive:
> On Monday, April 17, 2017 at 8:13:17 PM UTC-5, Stefan Weiss wrote:
>> The OP also wrote "download some stuff [...] _and_display_it_", which I
>> understood to mean "fetch with JS and insert into the current document". If
>> this interpretation is correct, neither `window.location = ..` nor a meta
>> refresh will do what he needs.
>
> Yes, that IS what I meant. Let me be clearer about the whole thing -
> suppose there is a "Page 1" full of stuff. It has a "Next Page", i.e
> page 2 link on it. While the user is *reading* page 1, I want the
> text for page 2 to download in the background - and then be
> displayed immediately as soon as "Next Page" is clicked!! Could you
> give me some pointers as to how to go about this? I do the AJAX call
> to get the text for Page 2 as soon as Page 1 is downloaded, right?
Sounds like you don't need JavaScript at all and actually want
prefetch:
<link rel="prefetch" href="page2.html">
https://www.w3.org/TR/resource-hints/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Which type of network access for this situation? bit-naughty@hotmail.com - 2017-04-17 11:53 -0700
Re: Which type of network access for this situation? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-04-18 00:57 +0100
Re: Which type of network access for this situation? Stefan Weiss <krewecherl@gmail.com> - 2017-04-18 01:57 +0200
Re: Which type of network access for this situation? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-18 02:52 +0200
Re: Which type of network access for this situation? Stefan Weiss <krewecherl@gmail.com> - 2017-04-18 03:13 +0200
Re: Which type of network access for this situation? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2017-04-18 05:40 +0200
Re: Which type of network access for this situation? bit-naughty@hotmail.com - 2017-04-18 08:22 -0700
Re: Which type of network access for this situation? bit-naughty@hotmail.com - 2017-04-18 08:28 -0700
Re: Which type of network access for this situation? Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-04-18 16:08 +0000
Re: Which type of network access for this situation? bit-naughty@hotmail.com - 2017-04-19 23:44 -0700
Re: Which type of network access for this situation? Jon Ribbens <jon+usenet@unequivocal.eu> - 2017-04-20 10:15 +0000
Re: Which type of network access for this situation? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-20 12:56 +0200
Re: Which type of network access for this situation? maherrj@googlemail.com - 2017-04-17 17:23 -0700
Re: Which type of network access for this situation? Stefan Weiss <krewecherl@gmail.com> - 2017-04-18 03:29 +0200
csiph-web