|
Index | Recent Threads | Register | |
Forums » List all forums » Forum: Webmaster's Corner » Thread: embed mini-cal after dom loaded |
Total posts in this thread: 4 |
[Change thread status]
[Delete this Thread]
[Move this Thread] [Add To My Favorites] [Watch this Thread] [Post new Thread] |
Author |
|
halomotaf
New Member
|
hi i am embedding the mini cal in my site' and it takes too much time to load, and preventing the site itself from being loaded so i tried to load the calendar only after dom loaded, and didn't find how could you help please ? thanks amir |
||
|
jasonsullivan
Veteran Joined: Feb 7, 2014 Posts: 92 Status: Offline |
Could you provide a link to the page on your site where it is embedded? ---------------------------------------- Jason Sullivan Support Associate Localendar.com |
||
|
halomotaf
New Member
|
http://halomotaf.co.il/ |
||
|
support
localendar Expert Joined: Aug 9, 2022 Posts: 6396 Status: Offline |
This is just a thought I had... First, in the two places you include <script> tags supplied by localendar, replace them with something like this: <div id="placeholder1"> </div> <div id="placeholder2"> </div> Then at the bottom of your page, try something like this: <script> var script1 = document.createElement('script'); script1.src = "http://www.localendar.com/js/PublishedIncludeMini.js"; document.getElementsById("placeholder1").appendChild(script1); var script2 = document.createElement('script'); script2.src = "http://www.localendar.com/public/halomotaf?include=Y&style=M5"; document.getElementsById("placeholder2").appendChild(script2); </script> Disclaimer; I haven't tested that yet, but it seems like it might work... BTW, can I ask how you achieved the result of reversing the calendar automatically? ---------------------------------------- Marc Higgins Support Associate, localendar.com Follow us on Twitter! http://www.twitter.com/localendar_news |
||
|
[Show Thread Printable Version] [Post new Thread] |
Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us |