We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d0016 commit 6e988f7Copy full SHA for 6e988f7
django_unicorn/components/unicorn_template_response.py
@@ -118,6 +118,8 @@ def render(self):
118
frontend_context_variables_dict = orjson.loads(frontend_context_variables)
119
checksum = generate_checksum(str(frontend_context_variables_dict))
120
121
+ # Use `html.parser` and not `lxml` because in testing it was no faster even with `cchardet`
122
+ # despite https://thehftguy.com/2020/07/28/making-beautifulsoup-parsing-10-times-faster/
123
soup = BeautifulSoup(content, features="html.parser")
124
root_element = get_root_element(soup)
125
root_element["unicorn:id"] = self.component.component_id
0 commit comments