Minify `ghost.url.api()` in production
See original GitHub issueIn 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:
- Created 8 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
I disabled it. Thanks for the response. I love the idea of an API, so I’m looking forward to the feature. Thanks again.