Emil Stenström
Emil Stenström
Here's a working example of what I'm trying to do: http://stackoverflow.com/a/8752044/117268 - I just need OAuth instead of Basic Auth now.
I think it makes sense to have a very lightweight JS script that tracks and updates dependencies makes sense. I wonder if we could make the existing component views just...
I have thought about this more and I think we should implement this like this: * Every component.as_view-view keeps track of which components it recursively has to render * In...
Good point with the 8kb limit. I think we can probably build a simple algo that compresses a list of dependency strings in an efficient way: https://chatgpt.com/share/df340430-0ba0-424c-a16a-69ebd9dc14e7 But maybe the...
Just for fun I played with GPT-4o to implement this, seems we get a compression ratio of 0.55, that will only grow as we add more urls. ```python urls =...
I guess you could produce a dictonary for all components on the first load, and then just send the encoded URL:s on all subsequent dynamic loads? I think that makes...
The code I pasted above does two things: 1. Split on / and put all the parts into a dictionary 2. Replace all the urls with references into that dictionary,...
I'm not sure I follow how this would be stateful? Sorry for being very brief, I'll try to explain my thinking in more detail: * When calling component_js/css_dependencies, we would...
I'm saying that we should base the dictionary on all components in the registry, not just the ones that are rendered on the initial page HTML. That should include all...
Before deciding on how to expose the public API, let's just start by listing out all the concepts that we expect people to understand to use components in their projects:...