Now that I've taken a quick look at this there is a problem when we loop thru the css files and find/replace the @font-face info with the info retrieved from google. The multiple queries to google make the export process take longer.
I'm not sure the extra waiting justifies the saving of about 8MB - it may look like a big increase when only exporting a few pages but 8MB is still small potatoes, it would take less than 1sec for many to download. Swapping the @font-face out to be fetched straight from google could also cause issues if the person want to view the html without connection to Internet. -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1518832 Title: Reduce size of HTML export zip Status in Mahara: Confirmed Bug description: With Bug 1515826 we're now including all the theme assets for a page, in its HTML export file. Unfortunately, this bumps the unzipped web archive contents up over 8MB. Which isn't a whole lot in the scheme of things I suppose, but before we did this, it was about 500kB. The main culprit is the raw/static/fonts directory included in the export, which is 8MB on its own. The opensans folder alone is about 6MB. The typical use-case for these fonts is for people to include them with a rel link to a remote server, like this: <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> We should see if we could make that happen with our export code, in order to reduce the size of the export. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1518832/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

