Title: On page loading
Last modified: December 10, 2024

---

# On page loading

 *  Resolved [Jan_Siev](https://wordpress.org/support/users/jan_wenzel/)
 * (@jan_wenzel)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/on-side-loading/)
 * Hi there,
 * is there any possibility to load the search results on page without relaoding
   the whole website? The Website reloads when I enter the ZIP Code in the search
   box and jumps back to the top of the page.
    -  This topic was modified 1 year, 5 months ago by [Jan_Siev](https://wordpress.org/support/users/jan_wenzel/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fon-side-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [umangmetatagg](https://wordpress.org/support/users/umangmetatagg/)
 * (@umangmetatagg)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/on-side-loading/#post-18194229)
 * Hey [@jan_wenzel](https://wordpress.org/support/users/jan_wenzel/)
 * Thank you for using our plugin.
 * We plan to implement a solution for loading search results dynamically without
   requiring a page reload in a future release. This enhancement will provide a 
   smoother and more seamless experience when using the Store Locator.
 * In the meantime, you can add the following JavaScript snippet to the store locator
   page, which ensures users smoothly navigate to the map section after performing
   a search.
 *     ```wp-block-code
       document.addEventListener("DOMContentLoaded", function () {    // Get the URL parameters    const urlParams = new URLSearchParams(window.location.search);    const userAddress = urlParams.get("userAddress");    if (userAddress) {        // Find the element with the ID or class matching the parameter        const targetElement = document.querySelector('.csl-search-form');                if (targetElement) {            // Scroll to the target element            targetElement.scrollIntoView({ behavior: "smooth" });        }    }});
       ```
   
 * If you have any questions or further suggestions, please feel free to let us 
   know.
 * Thanks!
 *  Plugin Author [umangmetatagg](https://wordpress.org/support/users/umangmetatagg/)
 * (@umangmetatagg)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/on-side-loading/#post-18263435)
 * Hello [@jan_wenzel](https://wordpress.org/support/users/jan_wenzel/)
 * We’ve just released version 1.4.9, which includes a patch for this fix. Please
   update the plugin and let us know if it resolves the issue or if you encounter
   any problems.
 * Thanks!
 *  Plugin Author [umangmetatagg](https://wordpress.org/support/users/umangmetatagg/)
 * (@umangmetatagg)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/on-side-loading/#post-18267123)
 * Hello [@jan_wenzel](https://wordpress.org/support/users/jan_wenzel/)
 * I’m closing this ticket for now. If you need any further assistance, please feel
   free to raise a new support ticket.
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘On page loading’ is closed to new replies.

 * ![](https://ps.w.org/custom-store-locator/assets/icon.svg?rev=2397207)
 * [Custom WP Store Locator](https://wordpress.org/plugins/custom-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-store-locator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [umangmetatagg](https://wordpress.org/support/users/umangmetatagg/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/on-side-loading/#post-18267123)
 * Status: resolved