Skip to content

Commit

Permalink
Set client-js-loading=finished to Body
Browse files Browse the repository at this point in the history
  • Loading branch information
fernanDOTdo committed Dec 14, 2024
1 parent e3ab887 commit fc29e2c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/engrid.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Friday, December 13, 2024 @ 23:40:40 ET
* Date: Friday, December 13, 2024 @ 23:50:28 ET
* By: fernando
* ENGrid styles: v0.20.0
* ENGrid scripts: v0.20.3
Expand Down
8 changes: 5 additions & 3 deletions dist/engrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* ENGRID PAGE TEMPLATE ASSETS
*
* Date: Friday, December 13, 2024 @ 23:40:40 ET
* Date: Friday, December 13, 2024 @ 23:50:28 ET
* By: fernando
* ENGrid styles: v0.20.0
* ENGrid scripts: v0.20.3
Expand Down Expand Up @@ -23131,7 +23131,9 @@ const customScript = function (App, EnForm) {
});
}

addTransactionFeeTooltip();
addTransactionFeeTooltip(); // Add data-engrid-client-js-loading=finsihed to body

App.setBodyData("client-js-loading", "finished");
};
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
function _defineProperty(obj, key, value) {
Expand Down Expand Up @@ -23359,9 +23361,9 @@ const options = {
onLoad: () => {
window.DonationLightboxForm = DonationLightboxForm;
new DonationLightboxForm(App, DonationAmount, DonationFrequency);
customScript(App, EnForm);
new AddDAF();
new OptInLadder();
customScript(App, EnForm);
},
onResize: () => console.log("Starter Theme Window Resized"),
onValidate: () => {
Expand Down
2 changes: 1 addition & 1 deletion dist/engrid.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/engrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ const options: Options = {
onLoad: () => {
(<any>window).DonationLightboxForm = DonationLightboxForm;
new DonationLightboxForm(App, DonationAmount, DonationFrequency);
customScript(App, EnForm);
new AddDAF();
new OptInLadder();
customScript(App, EnForm);
},
onResize: () => console.log("Starter Theme Window Resized"),
onValidate: () => {
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,6 @@ export const customScript = function (App, EnForm) {
}

addTransactionFeeTooltip();
// Add data-engrid-client-js-loading=finsihed to body
App.setBodyData("client-js-loading", "finished");
};

0 comments on commit fc29e2c

Please sign in to comment.