Content scripts currently need to include the content they want to send in the response to a request. This is fine for small responses but for large responses it is inefficient. Instead we should allow a content script to fetch a content by ID.
This requires the GoJaJavascriptRunner to be updated. It needs to reveive a reference to the DatabaseClient and then we just have expose a method in javascript that allows content to be fetched by ID.
Content scripts currently need to include the content they want to send in the response to a request. This is fine for small responses but for large responses it is inefficient. Instead we should allow a content script to fetch a content by ID.
This requires the GoJaJavascriptRunner to be updated. It needs to reveive a reference to the DatabaseClient and then we just have expose a method in javascript that allows content to be fetched by ID.