Challenge: Use redirect pages to pre-load Javascript?
|
04-01-2011, 10:48 PM
(This post was last modified: 04-01-2011 11:01 PM by jesper_mortensen.)
Post: #1
|
|||
|
|||
![]()
Dear all,
While thinking about our URL structure, I came up with an idea. But I don't know whether this is feasible or not, and would very much welcome feedback here. We have a couple of URLs which already must issue HTTP redirects. For example, our root folder http://company.com issues an HTTP redirect based on the user's language preference to f.x. http://company.com/en/ . I thought, can these redirects serve a dual purpose by pre-loading or priming the browser cache with cache-able objects needed on the subsequent pages? As an example, we load jQuery from the Google CDN on all our pages. Is there a way to make the browser cache jQuery while it's being redirected? I can think of a couple of ways to do this with Javascript. However:
Should an empty HTML page with a few SCRIPT tags in the BODY and a META REFRESH work? Any suggestions, any insights, does this seem sensible or not? ![]() |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Challenge: Use redirect pages to pre-load Javascript? - jesper_mortensen - 04-01-2011 10:48 PM
RE: Challenge: Use redirect pages to pre-load Javascript? - pmeenan - 04-01-2011, 11:02 PM
RE: Challenge: Use redirect pages to pre-load Javascript? - jesper_mortensen - 04-02-2011, 12:29 AM
|
User(s) browsing this thread: 1 Guest(s)