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 a146f98 commit d9d62aaCopy full SHA for d9d62aa
src/oc-client.js
@@ -555,13 +555,13 @@ export function createOc(oc) {
555
556
oc.renderUnloadedComponents = () => {
557
oc.ready(() => {
558
- const $unloadedComponents = $(
559
- OC_TAG + "[data-rendered!=true][data-failed!=true]",
+ const unloadedComponents = document.querySelectorAll(
+ `${OC_TAG}:not([data-rendered="true"]):not([data-failed="true"])`,
560
);
561
562
- $unloadedComponents.map((idx, unloadedComponent) => {
+ unloadedComponents.forEach((unloadedComponent, idx) => {
563
oc.renderNestedComponent(unloadedComponent, () => {
564
- if (idx == $unloadedComponents.length - 1) {
+ if (idx == unloadedComponents.length - 1) {
565
oc.renderUnloadedComponents();
566
}
567
});
0 commit comments