fixed position detection with scroll offsets, implemented support for dynamic loading