Skip to content

[Epub] Recommendation on handling relative assets/css #99

Answered by ChristianMurphy
chrisrzhou asked this question in Q&A
Discussion options

You must be logged in to vote

Either way could work, The pros and cons aren't necessarily unified related.

Any recommendation on how this problem could be approached?

If you want everything to load at once, inline/encode the content.
If you way to lazy-load or deliver different versions the content, externalize it.

How would we be able to share/point to the same CSS/asset resource without potential duplication (with the approach I mentioned above)?

It depends on if duplication matters in your use-case.
If you all inline content, there is a possibility of duplication, that may be fine, it reduces the number of network calls to get a page to one.
If you externalize the content you can prevent duplication, but extern…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wooorm
Comment options

@chrisrzhou
Comment options

Answer selected by chrisrzhou
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants