Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom bootstrap notification style missing when network throttling is on #1031

Open
tmeisenh opened this issue Mar 20, 2025 · 0 comments
Open

Comments

@tmeisenh
Copy link

I have a custom bootstrap styled notification that I'm raising with toastr pretty much exactly like the example here https://github.com/scttcper/ngx-toastr/blob/master/src/app/bootstrap.toast.ts

The only relevant difference is we load the bootstrap css and make the opacity adjustment where as this example does not and copy/pastes the bootstrap styling it needs, see https://github.com/scttcper/ngx-toastr/blob/master/src/styles.scss. We do have some additional styles we apply to our toasts to give them a custom background color but that's it.

What we've noticed is in chrome when the network throttling is turned on the notifications don't have all of the custom styling applied. They seem to have the default bootstrap but do not have our custom styles applied on them. If you turn network throttling off things work fine. It's almost like they are trying to lazy load the css? Is that what is happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant