Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAboulMakarem committed Sep 11, 2024
1 parent 3868d34 commit 6dba290
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,15 @@ You need to inject the following in your SPA to load MiniProfiler's speed badge

```html
<script
async=""
nonce=""
type="text/javascript"
id="mini-profiler"
src="<%= process.env.API_HOST %>/assets/rack-mini-profiler-4edd7ee8c294cc64ae2efb74e36d4aeba22b7281cfd7196ae3d2698c2b9a85a2.js"
data-css-url="<%= process.env.API_HOST %>/assets/rack-mini-profiler-e14fa04c38aa0fbc2298dba783152741800d436045fe9f688fc6d754ef438c4d.css"
data-version="116e2a6fd81c286e004e2a0afb03baa1"
<!-- dynamically get the backend link -->
src="<%= process.env.API_HOST %>/assets/rack-mini-profiler.js?v=116e2a6fd81c286e004e2a0afb03baa1"
data-css-url="<%= process.env.API_HOST %>/assets/rack-mini-profiler.css?v=116e2a6fd81c286e004e2a0afb03baa1"
data-version="116e2a6fd81c286e004e2a0afb03baa1"
data-path="<%= process.env.API_HOST %>/mini-profiler-resources/"
data-current-id="8lyzbr00gjq81djm1n1s"
data-ids="8lyzbr00gjq81djm1n1s,c0y00w7wlsuesgp6mbde"
<!-- need to be fetched dynamically -->
data-ids="116e2a6fd81c286e004e2a0afb03baa1"
data-horizontal-position="left"
data-vertical-position="top"
data-trivial="false"
Expand All @@ -391,9 +390,9 @@ You need to inject the following in your SPA to load MiniProfiler's speed badge
data-start-hidden="false"
data-collapse-results="true"
data-html-container="body"
data-hidden-custom-fields=""
data-turbo-permanent="false"
data-hidden-custom-fields
></script>

```

See an [example of how to do this in a React useEffect](https://gist.github.com/katelovescode/01cfc2b962c165193b160fd10af6c4d5).
Expand Down

0 comments on commit 6dba290

Please sign in to comment.