question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minify `ghost.url.api()` in production

See original GitHub issue

In 0.7.2 we added the ghost.url.api() utility so that it is possible to build api urls. This gets included via {{ghost_head}} for people who enable Public API in labs.

It is only a tiny bit of JavaScript see here, but we should minify it for production mode/environments.

We should possibly also include it as an external request, rather than inlining it, so that the browser can cache it?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
MaluNoPelekecommented, Aug 5, 2016

I need the API to be enabled for a few theme specific features but I also have the problem that the script is blocking the page from loading (see https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fgodofredo.ninja%2Fblog%2F). Is there any way to move it to the footer instead of the header or find another solution?

0reactions
cerkitcommented, Feb 3, 2016

I disabled it. Thanks for the response. I love the idea of an API, so I’m looking forward to the feature. Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Adapt your publication to suit your needs - Ghost
URL. (Required in production). Once a Ghost publication is installed, the first thing to do is set a url. When installing using ghost-cli...
Read more >
HTML minification using WebMarkupMin in ASP.NET Core
In this post I show how to add HTML minification (and HTTP compression) to your ASP.NET Core application at runtime, using the open...
Read more >
Minify Resources (HTML, CSS, and JavaScript)
You can create a build process that uses these tools to minify and rename the development files and save them to a production...
Read more >
introduction – API Reference - BlazeMeter API
To begin the OAuth flow, redirect a user to the Authorize URL. ... ghost-inspector - Execute a Ghost Inspector UI test and wait...
Read more >
How to Configure URLs - Ghost Tutorial - FastComet
It's important to configure your Ghost blog URL and set your domain name ... Locate the Production configuration section which should start ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found