Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2011
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problems with the ipad/iphone and my new website

    Hi all. I've just finished coding up my first proper website and having tested it on all the browsers you can install on a windows PC I was hoping that things would go painlessly. Not so...

    When I borrowed my friends ipad and looked the page took an absolute age to load. And sometimes it wouldn't load at all. After checking other websites etc I'm sure it's not the connection. I have some Javascript I had never used before, could this be causing the problem? Sometimes it looks like it's taking a long time loading the FB, google and twitter buttons. Do they cause problems on iphones and ipads?

    Unfortunately my problem is made worse because I can't easily get my hands on an ianything as I don't own one myself and all the emulators/simulators I've found don't appear to be 100% authentic. So it'd even be useful if someone could tell me if they have problems too.

    Can anyone help me out?
    the site's at www.traditionalirishgifts.com

    I'd appreciate it

  • #2
    New Coder
    Join Date
    May 2011
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm still struggling with this, anyone any ideas?

  • #3
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    When I first loaded your page on my laptop, with my admittedly slow broadband connection, I was presented with a blank screen for quite a while.

    Most of your scripts can be placed at the bottom of the page, just before the closing </body> tag. That is, allow the content of the page to be filled in before loading the scripts.

    Some of the scripts could/should only run once the page has fully loaded. As you are using jQuery you can place the code in:

    Code:
    $(document).ready( ... )
    ..even if the code is plain JS (rather than jQuery). An exception to this is where you use document.write() to add content in-place in the page. document.write() should be avoided where possible, instead waiting for the page to complete and then inserting (appending) content at the relevant location.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • #4
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    I like your page though - very neat

    Just a thought, but you could repeat your "Traditional Irish-Gifts" image-logo further down the page, perhaps in the footer; it doesn't harm to remind people of the page they are viewing - people have a short attent..
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •