Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Output should have multiple segments

by autarch (Hermit)
on Jul 17, 2008 at 11:51 UTC ( [id://698275]=note: print w/replies, xml ) Need Help??


in reply to Output should have multiple segments

I've done projects where I've dealt with this issue, and came up with solutions similar to what others have proposed.

However, ultimately I realized that this was basically wrong, at least for CSS and JS. For both of these, you're much better off serving a single cacheable file, rather than only including the files you need. This plays much better with typical web clients.

As to the general problem, I haven't run into it too often, and usually when I do it's not too complicated. The most common example is wanting to generate the <title> tag in a top-level autohandler and getting the title from the requested component. This is easily done with Mason's method system.

  • Comment on Re: Output should have multiple segments

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found