From 3868d34ba2309e56d39d6546d1d9a92c1b567a53 Mon Sep 17 00:00:00 2001
From: Omar Aboul Makarem <53283354+OmarAboulMakarem@users.noreply.github.com>
Date: Wed, 11 Sep 2024 10:19:37 +0300
Subject: [PATCH 1/2] Update SPA script README.md
the old script was not working, this script is the one passed to Rails FE and when used in SPA it works
---
README.md | 45 ++++++++++++++++++++++++++-------------------
1 file changed, 26 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index 60596f63..a8f88518 100644
--- a/README.md
+++ b/README.md
@@ -368,25 +368,32 @@ This method will remove profiling information that was related to previous page
You need to inject the following in your SPA to load MiniProfiler's speed badge ([extra details surrounding this script](https://github.com/MiniProfiler/rack-mini-profiler/issues/139#issuecomment-192880706) and [credit for the script tag](https://github.com/MiniProfiler/rack-mini-profiler/issues/479#issue-782488320) to [@ivanyv](https://github.com/ivanyv)):
```html
-
+
```
See an [example of how to do this in a React useEffect](https://gist.github.com/katelovescode/01cfc2b962c165193b160fd10af6c4d5).
From 6dba2906a8c773ee2c7e38ecf0bff60d107aaa5a Mon Sep 17 00:00:00 2001
From: Omar Aboul Makarem <53283354+OmarAboulMakarem@users.noreply.github.com>
Date: Wed, 11 Sep 2024 17:12:26 +0300
Subject: [PATCH 2/2] Update README.md
---
README.md | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index a8f88518..2327cbba 100644
--- a/README.md
+++ b/README.md
@@ -369,16 +369,15 @@ You need to inject the following in your SPA to load MiniProfiler's speed badge
```html
+
```
See an [example of how to do this in a React useEffect](https://gist.github.com/katelovescode/01cfc2b962c165193b160fd10af6c4d5).