td_fonts_js_buffer no longer updates

Posted in: Newsmag
Post count: 36

We’ve recently switched between typekit bundles and NewsMag refuses to update the buffered javascript.

Looking at page source it continues to refer to the old kit, despite the new kit showing in the theme panel under typekit settings.

Checking MySQL I can see that the option for the new kit is correctly referenced in the database, but td_fonts_js_buffer refers to the old async typekit code.

Is there a known issue in replacing typekit scripts? If not, how can we force the buffer to be regenerated? As it’s stored in a block of serialised data and I don’t have direct MySQL access (only PHPMyAdmin) I can’t easily edit this field, MySQL is notoriously unreliable when it comes to Longtext and the characters used to store the data.

Post count: 36

I’ve crawled through the source and it looks as though you only ever write the buffer out once when the first TypeKit is specified. I can’t see any code which checks if the specified JS has changed to update that buffer.

Post count: 780

Hi,

thanks for reporting this problem.

A small hack that works until we fix it: after you change the typekit javascript -> save it and go back to the theme panel and hit save again. This will rebuild the buffer.

*edit: it seems that it does not work every time 😐 . Please give me one day to look at it.

  • This reply was modified 11 years by Radu.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.