Comments (7)
I use the /print
endpoint with VisualPing to detect breakage.
There are possibly other uses for the /print
endpoint too.
Keep it.
from homebrewery.
My main concern was to do with server side rendering, as I believe the /print
endpoint was the main point of weakness - although I think that was resolved a while back, @calculuschild might be able to confirm.
I would expect that any VisualPing monitoring being done in /print
could equally be replicated in /share
, although I'm not 100% familiar with the specific tool.
I'd suggest that we take a staged approach, starting by implementing printing directly from the Edit and Share Pages, then monitoring the /print
route to see how much traffic it actually gets. We can then make the call to keep or remove it based on its actual usage, and execute that in a future PR if necessary.
As mentioned in the Gitter chat, it's also an opportunity to re-write this particular NavItem as a React Function Component, rather than a Class Component. If we're looking at transitioning to Function Components, this would be a good place to start.
from homebrewery.
VisualPing only scrolls the top-most frame. This works with the /print
resource, but not with the /share
endpoint.
IIRC, /print
still delivers a server side rendering in the http response payload. You can confirm this by view-source (as distinct from Inspect DOM)
Removing the server-side rendering wouldn't upset VisualPing because it does run the start_app()
javascript.
from homebrewery.
I'm not sure I see the problem this is trying to solve. Can you elaborate? As for SSR, we can change that behavior without fully removing /print.
As @ericscheid points out, /print is being used for other links. For instance it's what Google is using to track several of our reported issues on Chrome.
from homebrewery.
Ah, yes .. links to /print
pages could well already exist in other places, as links tend to do. It would be rude for use to make all those links go dead.
from homebrewery.
This is also slightly related to #2740.
The fact that /print
is done through SRR means it renders slightly different than the editor.
from homebrewery.
This is also slightly related to #2740.
The fact that
Thankfully (stupidly) the page also renders on client side by inclusion of the start_app(..)
call with the full brew contents.
from homebrewery.
Related Issues (20)
- Recent Items menu dropdown is inconsistent with other menu dropdowns
- Curly brackets inside comments and code blocks get the wrong color
- Metadata Nav item errors(missing info, incorrect display) HOT 2
- Landing page needs an update HOT 3
- Stop image masks flying in HOT 1
- CSS Updated features HOT 2
- Docker image build failing HOT 1
- i can't save my hb. HOT 2
- Problem Saving HOT 1
- Docker Container Build: The engine "node" is incompatible with this module. Expected version "14 || >=16.14". Got "16.13.2"
- [FEATURE]: Brew navigation features HOT 5
- Documentation Tracker HOT 8
- External Direct link HOT 3
- Possibility of Homebrewery as `npm` package for generating previews
- WYSWIG editor like in Obsidian HOT 2
- Table of Contents doesn't align with CSS Counter Resets HOT 6
- Use `geComputedStyle()` to determine page numbers for TOC HOT 1
- Snippets for custom css-counters HOT 3
- Render fragment targets into page stubs when doing PPR HOT 1
- heading IDs are not unique vs manual html or curly-blocks HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrewery.