Client project · Book publishing and bookselling
Forlagið: a lighter, faster online store
Forlagið’s online store had collected themes and plugins since 2016, needed four servers and was still slow. We built a new storefront on top of WooCommerce and Gagnaver took over the hosting: the site is many times lighter, runs on one server, and orders went up.
- Published
- Length
- 8 min read

In short
- The old site ran WordPress with 70 active plugins and leftover themes from 2016. Its front page weighed 21.3 MB on a phone and took 9.1 seconds to show.
- The new storefront is built with Astro and reads products, carts and orders from WooCommerce. The front page weighs 1.6 MB, shows in 1.9 seconds and scores 100 for accessibility, best practices and SEO in Lighthouse.
- Hosting went from four servers with 11 CPU cores and 33 GB of memory to one server with 4 cores and 8 GB, run by Gagnaver, plus the storefront.
- From 29 October to 3 December 2026 the store took 1,918 orders, 24% more than in the same period last year. The average order is almost unchanged.
- Forlagið’s staff manage the front page, book clubs and staff page themselves in Umsjón, without calling a developer.
Fact sheet
- Client
- Forlagið
- Sector
- Book publishing and bookselling
- Year
- 2026
- Duration
- About 5 weeks to launch (September–October 2026)
- Tech
- Astro
- TypeScript
- Tailwind CSS 4
- WordPress
- WooCommerce
- Typesense
- Cloudflare
- Docker
- Website
01. Background
Forlagið is Iceland’s largest book publisher. It runs a bookshop in Reykjavík and an online store at forlagid.is that sells printed books, e-books and audiobooks. E-books and audiobooks bought there go straight into the Bókahillan app.
The store was built on WordPress and WooCommerce in 2016 and had been redesigned several times since, first with the Avada theme and later with Astra and Elementor. Each redesign added plugins, and few were ever removed.
02. The challenge
When we took over the site, WordPress had 90 plugins installed and 70 of them active. They included the Elementor page builder with eleven add-ons on top of it, a separate product-grid system, three payment gateways, another eleven plugins for importing and exporting data, and leftover themes that had not been used for years. The uploads folder had grown to 47 GB.

It showed everywhere:
- A slow site. The front page weighed 21.3 MB on a phone and loaded 270 files, mostly because book covers were sent at full size, some over 2 MB each. The largest element took 9.1 seconds to appear on the front page and 14.1 seconds on a book page, where the server took 11 seconds to respond.
- Large, expensive hosting. The site ran on four servers, a front server and three PHP servers, with 11 CPU cores and 33 GB of memory between them. The operating system was CentOS 7, which stopped receiving security updates in 2024. Despite all that capacity, the site regularly went down or timed out.
- Hard to change. Every design change had to go through a page builder, a theme and a child theme, and it was never clear which plugin controlled what.
- Accessibility. Lighthouse found low colour contrast, unlabelled form fields, links without text, headings out of order and touch targets that were too small.
03. Goals
- G1The site should be fast, on phones too and at peak times like the run-up to Christmas.
- G2Smaller, cheaper hosting that is easy to run and update.
- G3A new, accessible design that puts the books first.
- G4Search that finds books and authors instantly, even when typed without Icelandic accents.
- G5Forlagið’s staff can change the front page and promotions themselves.
- G6WooCommerce, payment methods, shipping options and accounting integrations stay as they are, and sales are not disrupted by the switch.
04. Approach
We decided to keep WooCommerce, which handles products, prices, stock, orders, payments and accounting integrations and does it well, and to replace everything the customer sees. This is a headless store: WordPress becomes the back end and a new storefront serves the pages.
- WordPress as the back end. Staff keep working in WooCommerce as before, with the same products, prices and settings.
- A new storefront in Astro. Pages are rendered on the server and cached. When a book changes in WooCommerce, WordPress tells the storefront, and only the pages that show that book are refreshed.
- The browser never talks to WordPress. Cart and checkout go through the storefront, and most pages come from its cache, so WordPress no longer builds a page for every visitor.
- A purpose-built connection. We wrote a WordPress plugin that provides everything the storefront needs from WordPress: page refreshes, the search index, product feeds, and the payment and shipping bridges.
- New hosting with Gagnaver. Gagnaver took over the hosting. WordPress now runs on one server at a cloud provider managed by Gagnaver, and the storefront runs on a managed container platform in the same place.
Work started in September and the new site was fully in use on 29 October 2026, just before Iceland’s Christmas book season.
05. The solution
The book page
A book that comes in more than one format, for example hardback and e-book, is one page. When the customer picks a format, the price, stock status and cover change in place.


Categories and search
Search and category pages run on Typesense, a search engine that the WordPress plugin keeps up to date whenever a book changes. Search in the header answers as you type, finds both books and authors, and ignores Icelandic accents. Category pages can be filtered by format and price and sorted.


Images
Book covers are still stored in WordPress, but the storefront resizes them and converts them to WebP on demand, and Cloudflare caches the copies. A phone gets a cover that fits its screen, not a 2 MB original.
Umsjón
We added a page to WordPress called Umsjón (Management). There, staff choose the front-page banners, the book of the month, promotion cards and book rows, and manage the book clubs and the staff list. Changes appear on the site straight away, without a developer.
No account needed
On the old site, customers needed an account, mainly so they could sign in to the old Hlusta audiobook app. Bókahillan has its own sign-in, and that is where people get the audiobooks and e-books they buy. So on the new site, anyone can buy without creating an account. Checkout is shorter, and the store’s database doesn’t fill up with accounts nobody uses.
What stayed the same
Payments still go through Netgíró and Straumur, and shipping through Dropp and Pósturinn. WooCommerce still records where every order came from, and a product feed for Facebook and Instagram ads is built every night.
06. Results
The speed measurements were taken with Lighthouse on the same computer on the same day, on the old site on the old hosting and on the new site at forlagid.is. Orders are compared with the same period a year earlier, because sales before Christmas are always higher than the rest of the year.
Baseline for G1
The site should be fast, on phones too and at peak times like the run-up to Christmas.
- Front page weight on mobile, old site21.3 MB · 270 requestsSource: Lighthouse mobile test of the old site on the old hostingMeasured
- Largest Contentful Paint (LCP) on mobile, old site9.1 sSource: Lighthouse mobile test with throttled connection, median of three runsMeasured
Answers goal G1
The site should be fast, on phones too and at peak times like the run-up to Christmas.
- Front page weight on mobile, new site1.6 MB · 44 requestsSource: Lighthouse mobile test of forlagid.isMeasured
- Largest Contentful Paint (LCP) on mobile, new site1.9 sSource: Lighthouse, same testMeasured
- Server response time for the front pageAbout 0.15 sSource: Ten consecutive requests from Sweden, 4 December 2026Measured
Baseline for G2
Smaller, cheaper hosting that is easy to run and update.
- Servers for the site, old hosting4 · 11 cores · 33 GBSource: Server list from the old hosting: a front server and three PHP servers on CentOS 7Measured
Answers goal G2
Smaller, cheaper hosting that is easy to run and update.
- Servers for WordPress, new hosting1 · 4 cores · 8 GBSource: Gagnaver. The storefront runs separately in a managed container platform.Measured
Baseline for G3
A new, accessible design that puts the books first.
- Lighthouse accessibility, old site86Source: Lighthouse mobile testMeasured
Answers goal G3
A new, accessible design that puts the books first.
- Lighthouse accessibility, new site100Source: Lighthouse mobile testMeasured
Baseline for G6
WooCommerce, payment methods, shipping options and accounting integrations stay as they are, and sales are not disrupted by the switch.
- Orders 29 October – 3 December 2025 (old site)1,553Source: Old site database: completed orders and orders in progressMeasured
Answers goal G6
WooCommerce, payment methods, shipping options and accounting integrations stay as they are, and sales are not disrupted by the switch.
- Orders 29 October – 3 December 20261,918 (+24%)Source: WooCommerce, same measure. Average order ISK 8,122 against ISK 8,273 the year before.Measured
- Share of orders placed on a phone55%Source: WooCommerce order attribution, 29 October – 3 December 2026Measured
Orders rose 24% year on year while the average order stayed almost the same. We can’t claim the new site alone explains the increase, but it handled the Christmas rush without trouble on one server where four were needed before.
07. Lessons and next steps
- Keep what works. WooCommerce was not the problem. Keeping it as the back end meant orders, payments and accounting stayed the same, and we could focus on what the customer sees.
- A cache has to know when to forget. Pages are kept until a book changes, and then only the pages that show it are refreshed. The site stays fast without showing an old price or the wrong stock status.
- Images matter most. Most of the old site’s weight was full-size covers. Resizing them and converting them to WebP did more for speed than anything else.
- Next: shareable wishlists, order tracking for customers, and continued improvements based on what we see in orders and search.




