# How to prevent effects of async loading vs direct loading?

**URL:** <https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379>\
**Category:** Development\
**Created:** [Août 29, 2016, 12:46 UTC](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379 "2016-08-29T12:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [Août 29, 2016, 1:02 UTC](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379/4 "2016-08-29T13:02:47Z")

</div>

Here we go  
[https://meta.discourse.org/t/wip-list-of-all-the-hooks-in-discourse/11505](https://meta.discourse.org/t/wip-list-of-all-the-hooks-in-discourse/11505)

I think you will want `Discourse.PageTracker.current()` (assuming these are still valid and haven’t changed)

---

_[View the full topic](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379)._
