Forum .LRN Q&A: Re: RFC: Portlet shading
E.g. if you have a JS variable "my_portlet_shaded_p", this controls the shading state on the client side. The shaded_p variable controls to what the my_portlet_shaded_p JS variable should be set whenever the server sends data to the client.
Obviously you would remove the < if @shaded_p@ ne "t"> part :).