javascript - Jcarousel and display: none + SEO concern -
i using jcarousel on page in 3 different sections. show first section , hide other 2 display: none
.
i have done googling , found common problem because has display of none automatically has width of 0 , hence jcarousel cannot set properly.
i found post on so: hide jcarousel when page loads
that deals putting content don't wanna show yet moving off page, that, wondering, bad seo purposes? in google wouldn't content being outside of page?
do have other options?
ok, fixed issue letting content load first , once page data loaded ran function hide relative content.
code in header.. runs hidehomecats
function once on page has been loaded.
$(window).load(hidehomecats);
where hidehomecats
function hides relevant content.
hope helps else. :)
Comments
Post a Comment