And that worked? if you have more than one style node, you would be appending that to more than one, causing some overhead. You could try this:
var $style = $('#my_style'); if( $style.length == 0 ) $style = $('<style>').attr('type','text/ css').attr('id','my_style').appendTo('head'); $style.text(".siteWidth{width: " + modifiedW +"}");//add 'px' if modifiedW lacks it Ariel Flesler On 8 nov, 02:43, fambizzari <[EMAIL PROTECTED]> wrote: > Flesler, that's what we ended up doing... > > $("head style").append(".siteWidth{width: " + modifiedW +"}"); > > But it still took the same amount of time for the page to update. > > I wonder why?