we have upto 3 actions that each row in list view should be checked
for (edit, delete, show) - assuming that they are in the config
settings for that model,

so each record and row has lots of calls to authorized_for to display
the action link. (20 rows, std 3 options = 60 calls to authorized_for
for jsut the action links,

So I removed the authorized_for in the _list_actions.html of AS  and
replaced this into a inplace onmouseover action - this   way no
options are displayed BY DEFAULT - just some text "options" until the
mouse is over the area where the action links should be, then replace
with AJAX updateer the allowed options.

this way we have 0 checks on authorized_for per list view page load
until the user actually needs it.

This speeds up my page load by around 8-12%, for my list view, not
sure if others have lag on page loads but for me it is the most
important issue, user experience - page repsonse is the foundation of
it all (yes I have gzip, mod_deflate, expires grade A on yslow for
everytthing, inc css sprites, the only bottle next is whats coming out
of AS & Rails)



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to